All Projects → ryosan-470 → factordb-python

ryosan-470 / factordb-python

Licence: MIT License
FactorDB client library with Python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to factordb-python

factordb
RSA primes numbers /RSA/CTFs
Stars: ✭ 42 (+23.53%)
Mutual labels:  ctf, factordb
My-CTF-Challenges
🏴 🏴 🏴
Stars: ✭ 65 (+91.18%)
Mutual labels:  ctf
Web-Exploitation-Workflow
Web Exploitation Workflow for CTF Challenges
Stars: ✭ 33 (-2.94%)
Mutual labels:  ctf
Flag-Capture
Solutions and write-ups from security-based competitions also known as Capture The Flag competition
Stars: ✭ 84 (+147.06%)
Mutual labels:  ctf
Attack-Defense-Platform
A framework that help to create CTF Attack with Defense competition quickly
Stars: ✭ 23 (-32.35%)
Mutual labels:  ctf
2020
WeCTF 2020 Source Code & Organizer's Writeup
Stars: ✭ 29 (-14.71%)
Mutual labels:  ctf
Enum.py
A tool to enumerate network services
Stars: ✭ 23 (-32.35%)
Mutual labels:  ctf
CTF-Write-UP
澳門網絡安全暨奪旗競賽協會(Macau Cyber Security and Capture The Flag Association)MOCSCTF/MOCTF
Stars: ✭ 27 (-20.59%)
Mutual labels:  ctf
doubletap
A very loud but fast recon scan and pentest template creator for use in CTF's/OSCP/Hackthebox...
Stars: ✭ 23 (-32.35%)
Mutual labels:  ctf
CTF-Challenges
Capture the flag challenges
Stars: ✭ 41 (+20.59%)
Mutual labels:  ctf
concise-cheat-sheets
Cheat Sheets for programming languages and tools
Stars: ✭ 98 (+188.24%)
Mutual labels:  ctf
Inequality Solving with CVP
CVP "trick" for CTF challenges
Stars: ✭ 74 (+117.65%)
Mutual labels:  ctf
CTF
My CTF tools & some other stuff
Stars: ✭ 17 (-50%)
Mutual labels:  ctf
HashExploit
HashExpoit is Great Tool For Cracking Hash
Stars: ✭ 17 (-50%)
Mutual labels:  ctf
CTF-Site
介绍一些CTF训练的站点
Stars: ✭ 83 (+144.12%)
Mutual labels:  ctf
How-to-Hack-Websites
開源的正體中文 Web Hacking 學習資源 - 程式安全 2021 Fall
Stars: ✭ 291 (+755.88%)
Mutual labels:  ctf
2017-quals
Tasks from CTFZone 2017 quals
Stars: ✭ 13 (-61.76%)
Mutual labels:  ctf
pwnscripts
Very simple script(s) to hasten binary exploit creation
Stars: ✭ 66 (+94.12%)
Mutual labels:  ctf
obsidian
Writeups for CTF challenges.
Stars: ✭ 47 (+38.24%)
Mutual labels:  ctf
blackhat-python
Black Hat Python workshop for Disobey 2019
Stars: ✭ 27 (-20.59%)
Mutual labels:  ctf

factordb-python

.github/workflows/test.yml PyPI PyPI PyPI PyPI

The FactorDB is the database to store known factorizations for any number. This tool can use on your command line. And also you can use this tool with python 2 & 3 scripts.

Installation

The easiest way to install factordb-python is to use pip:

$ pip install factordb-python

or, if you are not installing in a virtualenv:

$ sudo pip install factordb-python

If you have the factordb-python installed and want to upgrade to the latest version you can run:

$ pip install --upgrade factordb-python

Getting Started

CLI

If you want to know the result of factorization of 16, you should type like this:

$ factordb 16

Then, you can get the answer from factordb.com.

$ factordb 16
2 2 2 2

If you want to know more detail of result, you can get an answer of JSON format.

$ factordb --json 16
{"id": "http://factordb.com/?id=2", "status": "FF", "factors": [2, 2, 2, 2]}

Library usage

If you want to use this script with Python, you should type import statement on your code like this:

from factordb.factordb import FactorDB

Then, you can get the answer with Python lists.

In [1]: from factordb.factordb import FactorDB

In [2]: f = FactorDB(16)

In [3]: f.get_factor_list()
Out[3]: []

In [4]: f.connect()
Out[4]: <Response [200]>

In [5]: f.get_factor_list()
Out[5]: [2, 2, 2, 2]

In [6]: f.get_factor_from_api()
Out[6]: [['2', 4]]

In [7]: f.get_status()
Out[7]: 'FF'

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].