MCPcopy Create free account

hub / github.com/RsaCtfTool/RsaCtfTool / functions

Functions614 in github.com/RsaCtfTool/RsaCtfTool

↓ 1 callersFunction_handle_decrypt_input
(args, logger)
src/RsaCtfTool/main.py:483
↓ 1 callersFunction_handle_early_exit_modes
(args, logger)
src/RsaCtfTool/main.py:499
↓ 1 callersFunction_handle_fully_specified_key
(args, logger)
src/RsaCtfTool/main.py:542
↓ 1 callersMethod_handle_provided_primes
(self)
src/RsaCtfTool/lib/rsa_attack.py:299
↓ 1 callersMethod_init_fields
(self, p, q, e, n, d, phi)
src/RsaCtfTool/lib/keys_wrapper.py:89
↓ 1 callersFunction_is_prime
If Fermat's prime criterion is false by short circuit we don't need to keep testing bases, so we return false for a guaranteed composite. Oth
src/RsaCtfTool/lib/number_theory.py:217
↓ 1 callersMethod_load_key_from_file
(self, filename, password, p, q, d)
src/RsaCtfTool/lib/keys_wrapper.py:134
↓ 1 callersMethod_load_public_key
(self, publickey)
src/RsaCtfTool/lib/rsa_attack.py:280
↓ 1 callersFunction_load_public_keys
(args)
src/RsaCtfTool/main.py:529
↓ 1 callersFunction_parse_numeric_args
(args)
src/RsaCtfTool/main.py:427
↓ 1 callersFunction_primes_yield_gmpy
(n)
src/RsaCtfTool/lib/number_theory.py:259
↓ 1 callersFunction_print_decrypt_results
(args, decrypt, logger)
src/RsaCtfTool/lib/utils.py:112
↓ 1 callersFunction_print_dumpkey_private
(args, private_keys, logger)
src/RsaCtfTool/lib/utils.py:79
↓ 1 callersFunction_print_dumpkey_public
(args, publickey, logger)
src/RsaCtfTool/lib/utils.py:103
↓ 1 callersFunction_print_private_key
(args, private_keys, logger)
src/RsaCtfTool/lib/utils.py:56
↓ 1 callersFunction_recover_pq_from_ned
(args, logger)
src/RsaCtfTool/main.py:456
↓ 1 callersMethod_run_attack_loop
(self, publickey)
src/RsaCtfTool/lib/rsa_attack.py:336
↓ 1 callersFunction_setup_logging
(args)
src/RsaCtfTool/main.py:413
↓ 1 callersFunction_warn_if_extra_primes
(args, logger)
src/RsaCtfTool/main.py:444
↓ 1 callersMethodattack
Attack implementation
src/RsaCtfTool/attacks/abstract_attack.py:36
↓ 1 callersMethodattack
Same n huge e attack
src/RsaCtfTool/attacks/multi_keys/same_n_huge_e.py:14
↓ 1 callersMethodattack
Hastad attack for low public exponent this has found success for e = 3
src/RsaCtfTool/attacks/multi_keys/hastads.py:14
↓ 1 callersMethodattack
Common modulus attack
src/RsaCtfTool/attacks/multi_keys/common_modulus_related_message.py:25
↓ 1 callersMethodattack
use elliptic curve method, may return a prime or may never return only works if the sageworks() function returned True
src/RsaCtfTool/attacks/single_key/ecm.py:17
↓ 1 callersMethodattack
Search for previously used primes in CTFs
src/RsaCtfTool/attacks/single_key/pastctfprimes.py:16
↓ 1 callersMethodattack
Run tests against factorial +-1 composites
src/RsaCtfTool/attacks/single_key/factorial_pm1_gcd.py:14
↓ 1 callersMethodattack
Do nothing, used for multi-key attacks that succeeded so we just print the private key without spending any time factoring
src/RsaCtfTool/attacks/single_key/londahl.py:14
↓ 1 callersMethodattack
try to factorize n when is in the form: root^x, with root prime
src/RsaCtfTool/attacks/single_key/nonRSA.py:14
↓ 1 callersMethodattack
Run attack with Pollard P1
src/RsaCtfTool/attacks/single_key/pollard_p_1.py:13
↓ 1 callersMethodattack
Run lehmer_machine attack with a timeout
src/RsaCtfTool/attacks/single_key/lehmer.py:14
↓ 1 callersMethodattack
Search for rapid7 gcd primes
src/RsaCtfTool/attacks/single_key/rapid7primes.py:17
↓ 1 callersMethodattack
Run attack with Pollard Rho
src/RsaCtfTool/attacks/single_key/pollard_rho.py:13
↓ 1 callersMethodattack
Run Hart's attack with a timeout
src/RsaCtfTool/attacks/single_key/hart.py:14
↓ 1 callersMethodattack
Run tests against mersenne primes
src/RsaCtfTool/attacks/single_key/mersenne_primes.py:15
↓ 1 callersMethodattack
Factors available online?
src/RsaCtfTool/attacks/single_key/factordb.py:21
↓ 1 callersMethodattack
Try to decrypt c if m < n/e and small e
src/RsaCtfTool/attacks/single_key/cube_root.py:12
↓ 1 callersMethodattack
System primes in crypto constants
src/RsaCtfTool/attacks/single_key/system_primes_gcd.py:15
↓ 1 callersMethodattack
Try to factorize using yafu
src/RsaCtfTool/attacks/single_key/siqs.py:77
↓ 1 callersMethodattack
Run tests against primorial +-1 composites
src/RsaCtfTool/attacks/single_key/primorial_pm1_gcd.py:14
↓ 1 callersMethodattack
Run tests against Lucas numbers
src/RsaCtfTool/attacks/single_key/lucas_gcd.py:14
↓ 1 callersMethodattack
Pisano(mersenne) period factorization algorithm optimal for keys sub 70 bits in less than a minute. The attack is very similar to lon
src/RsaCtfTool/attacks/single_key/pisano_period.py:20
↓ 1 callersMethodattack
Run the Quadratic Sieve factorisation attack
src/RsaCtfTool/attacks/single_key/quadratic_sieve.py:13
↓ 1 callersMethodattack
Run tests against mersenne composites
src/RsaCtfTool/attacks/single_key/mersenne_pm1_gcd.py:14
↓ 1 callersMethodattack
use elliptic curve method only works if the sageworks() function returned True
src/RsaCtfTool/attacks/single_key/ecm2.py:17
↓ 1 callersMethodattack
Run FactorHighAndLowBitsEqual attack with a timeout
src/RsaCtfTool/attacks/single_key/highandlowbitsequal.py:14
↓ 1 callersMethodattack
"primes" of the form 31337 - 313333337 - see ekoparty 2015 "rsa 2070" not all numbers in this form are prime but some are (25 digit is prime)
src/RsaCtfTool/attacks/single_key/noveltyprimes.py:15
↓ 1 callersMethodattack
Wiener's attack
src/RsaCtfTool/attacks/single_key/wiener.py:14
↓ 1 callersMethodattack
Run pollard_strassen attack with a timeout
src/RsaCtfTool/attacks/single_key/pollard_strassen.py:15
↓ 1 callersMethodattack
Qi Cheng - A New Class of Unsafe Primes
src/RsaCtfTool/attacks/single_key/qicheng.py:16
↓ 1 callersMethodattack
Run factor (2P)N form attack with a timeout
src/RsaCtfTool/attacks/single_key/factor_2PN.py:14
↓ 1 callersMethodattack
Run prime_base_collision attack with a timeout
src/RsaCtfTool/attacks/single_key/prime_base_collision.py:14
↓ 1 callersMethodattack
Use boneh durfee method, should return a d value, else returns 0 only works if the sageworks() function returned True many of these pr
src/RsaCtfTool/attacks/single_key/boneh_durfee.py:17
↓ 1 callersMethodattack
Run (X^Y)(X^Z) form attack with a timeout
src/RsaCtfTool/attacks/single_key/XYXZ.py:15
↓ 1 callersMethodattack
Run fermat attack with a timeout
src/RsaCtfTool/attacks/single_key/fermat.py:14
↓ 1 callersMethodattack
Run Shor attack with a timeout
src/RsaCtfTool/attacks/single_key/classical_shor.py:15
↓ 1 callersMethodattack
(self, publickey, cipher=[], progress=True)
src/RsaCtfTool/attacks/single_key/neca.py:19
↓ 1 callersMethodattack
Factor n if mininum of crt exponent is small enough
src/RsaCtfTool/attacks/single_key/small_crt_exp.py:16
↓ 1 callersMethodattack
Run fermat attack with a timeout
src/RsaCtfTool/attacks/single_key/SQUFOF.py:13
↓ 1 callersMethodattack
Run lehman attack with a timeout
src/RsaCtfTool/attacks/single_key/lehman.py:14
↓ 1 callersMethodattack
Code/idea from RsaCtfTool.Renaud Lifchitz's talk 15 ways to break RSA security @ OPCDE17 only works if the sageworks() function returned True
src/RsaCtfTool/attacks/single_key/smallfraction.py:15
↓ 1 callersMethodattack
Run strong_pseudoprime attack with a timeout
src/RsaCtfTool/attacks/single_key/strong_pseudoprime.py:14
↓ 1 callersMethodattack
(self, publickey, cipher=[], progress=True)
src/RsaCtfTool/attacks/single_key/z3_solver.py:60
↓ 1 callersMethodattack
Run kraitchik attack with a timeout
src/RsaCtfTool/attacks/single_key/kraitchik.py:14
↓ 1 callersMethodattack
Run Dixon's smooth-number factorisation attack
src/RsaCtfTool/attacks/single_key/dixon.py:13
↓ 1 callersMethodattack
Run tests against factorial +-1 composites
src/RsaCtfTool/attacks/single_key/compositorial_pm1_gcd.py:14
↓ 1 callersMethodattack
Run tests against fermat composites
src/RsaCtfTool/attacks/single_key/fibonacci_gcd.py:14
↓ 1 callersMethodattack
Run tests against fermat composites
src/RsaCtfTool/attacks/single_key/fermat_numbers_gcd.py:14
↓ 1 callersMethodattack
(self, publickey, cipher=[], progress=True)
src/RsaCtfTool/attacks/single_key/roca.py:19
↓ 1 callersMethodattack
Run attack with Pollard Rho-brent
src/RsaCtfTool/attacks/single_key/brent.py:13
↓ 1 callersMethodattack
Try an attack where q < 100,000, from RsaCtfTool.BKPCTF2016 - sourcekris
src/RsaCtfTool/attacks/single_key/smallq.py:13
↓ 1 callersMethodattack
Run attack with Euler method
src/RsaCtfTool/attacks/single_key/euler.py:17
↓ 1 callersMethodattack
Run fermat attack with a timeout
src/RsaCtfTool/attacks/single_key/multiple_base_inversion_gcd.py:47
↓ 1 callersMethodattack_multiple_keys
Run attacks on multiple keys
src/RsaCtfTool/lib/rsa_attack.py:192
↓ 1 callersMethodattack_wrapper
Attack wrapper to include timer in all attacks
src/RsaCtfTool/attacks/abstract_attack.py:47
↓ 1 callersFunctionbanner
()
src/RsaCtfTool/main.py:42
↓ 1 callersFunctioncheck_is_roca
Checks the given list of public key files for the ROCA vulnerability. Args: args (Namespace): Command line arguments or configuratio
src/RsaCtfTool/main.py:286
↓ 1 callersFunctioncleanup
(args)
src/RsaCtfTool/main.py:403
↓ 1 callersFunctionclose_factor
source: https://web.archive.org/web/20201031000312/https://grocid.net/2017/09/16/finding-close-prime-factorizations/
src/RsaCtfTool/lib/algos.py:109
↓ 1 callersMethodcomfact
(self, cipher, publickey)
src/RsaCtfTool/attacks/single_key/comfact_cn.py:15
↓ 1 callersMethodcommon_modulus_related_message_attack
(self, c1, c2, k1, k2)
src/RsaCtfTool/attacks/multi_keys/common_modulus_related_message.py:15
↓ 1 callersFunctionconvert_idrsa_pub
(args, logger)
src/RsaCtfTool/main.py:270
↓ 1 callersFunctioncoppersmith_howgrave_univariate
Taken from https://github.com/mimoo/RSA-and-LLL-attacks/blob/master/coppersmith.sage Coppersmith revisited by Howgrave-Graham finds a so
src/RsaCtfTool/sage/sage_functions.py:4
↓ 1 callersFunctiondecompress_pickle
(filename)
src/RsaCtfTool/lib/pickling.py:23
↓ 1 callersFunctiondecrypt_file
Decrypts files specified in args.decryptfile using the provided private key, or prepares files for decryption with a public key. Note: Curren
src/RsaCtfTool/main.py:351
↓ 1 callersFunctiondifference_of_powers_factor
Idea based on: https://github.com/trizen/perl-scripts/blob/master/Math/difference_of_powers_factorization_method.pl
src/RsaCtfTool/lib/algos.py:960
↓ 1 callersFunctiondisect_idrsa_pub
(pub)
src/RsaCtfTool/lib/idrsa_pub_disector.py:6
↓ 1 callersFunctiondlp_bruteforce
Try to solve the discrete logarithm problem: x for g^x == h (mod p) with brute force.
src/RsaCtfTool/lib/number_theory.py:581
↓ 1 callersMethoddoattack
Perform attack
src/RsaCtfTool/attacks/single_key/siqs.py:32
↓ 1 callersFunctiondump_key_parameters
(args)
src/RsaCtfTool/main.py:331
↓ 1 callersMethodget_attack
(self, attack, multikeys)
src/RsaCtfTool/lib/rsa_attack.py:134
↓ 1 callersMethodget_period_bigint
(self, N, min_accept, xdiff)
src/RsaCtfTool/lib/algos.py:576
↓ 1 callersFunctiongetdata
(start, end)
src/RsaCtfTool/lib/idrsa_pub_disector.py:16
↓ 1 callersFunctiongetfdb
(composite)
src/RsaCtfTool/attacks/single_key/factordb.py:10
↓ 1 callersMethodis_conspicuous
(self)
src/RsaCtfTool/lib/keys_wrapper.py:191
↓ 1 callersFunctionload_keys
(args, logger)
src/RsaCtfTool/main.py:318
↓ 1 callersFunctionload_partial_privkey
helper function to load a partial mangled asn1 PEM private key into an array of integers version, modulus(n), exponent(e), d, prime(p), prime
src/RsaCtfTool/lib/keys_wrapper.py:19
↓ 1 callersFunctionload_system_consts
()
src/RsaCtfTool/lib/system_primes.py:1299
↓ 1 callersFunctionneca_factor_driver
(n, timeout=None)
src/RsaCtfTool/lib/external.py:7
↓ 1 callersFunctionparse_args
()
src/RsaCtfTool/main.py:66
↓ 1 callersFunctionprivatekey_check
(N, p, q, d, e)
src/RsaCtfTool/lib/conspicuous_check.py:4
← previousnext →101–200 of 614, ranked by callers