Projects STRLCPY ghauri Commits 5da33a63
🤬
  • fixed issue with user providing --time-sec value < 5 to be used by Ghauri..

  • Loading...
  • r0oth3x49 committed 1 year ago
    5da33a63
    1 parent 721b1de2
  • ■ ■ ■ ■ ■ ■
    ghauri/core/extract.py
    skipped 104 lines
    105 105   linear_search = False
    106 106   retry_on_error = 0
    107 107   http_firewall_code_counter = 0
    108  - timesec = timesec if conf.timesec <= timesec else conf.timesec
     108 + timesec = conf.timesec
    109 109   error_msg = None
    110 110   _temp = GuessUsing(
    111 111   ok=False,
    skipped 262 lines
    374 374   expression = vector.replace("[INFERENCE]", f"{condition}").replace(
    375 375   "[SLEEPTIME]", f"{timesec}"
    376 376   )
    377  - sleep_time = timesec if conf.timesec <= timesec else conf.timesec
     377 + sleep_time = conf.timesec
    378 378   logger.payload(f"{expression}")
    379 379   try:
    380 380   attack = inject_expression(
    skipped 129 lines
    510 510   ]
    511 511   )
    512 512   logger.progress(f"retrieved: {chars}")
    513  - sleep_time = timesec if conf.timesec <= timesec else conf.timesec
     513 + sleep_time = conf.timesec
    514 514   
    515 515   def chunks(lst, n):
    516 516   """Yield successive n-sized chunks from lst."""
    skipped 214 lines
    731 731   ]
    732 732   )
    733 733   logger.progress(f"retrieved: {chars}")
    734  - sleep_time = timesec if conf.timesec <= timesec else conf.timesec
     734 + sleep_time = conf.timesec
    735 735   while not is_found:
    736 736   # if http_firewall_code_counter > 2:
    737 737   # message = f"{error_msg} - {http_firewall_code_counter} time(s)"
    skipped 182 lines
    920 920   http_firewall_code_counter = 0
    921 921   error_msg = None
    922 922   retry_on_error = 0
    923  - sleep_time = timesec if conf.timesec <= timesec else conf.timesec
     923 + sleep_time = conf.timesec
    924 924   while start < end:
    925 925   # if http_firewall_code_counter > 2:
    926 926   # message = f"{error_msg} - {http_firewall_code_counter} time(s)"
    skipped 152 lines
    1079 1079   while start_pos < stop:
    1080 1080   if delay > 0:
    1081 1081   time.sleep(delay)
    1082  - sleep_time = timesec if conf.timesec <= timesec else conf.timesec
     1082 + sleep_time = conf.timesec
    1083 1083   condition = value.format(query=entry, char=start_pos)
    1084 1084   expression = vector.replace("[INFERENCE]", f"{condition}").replace(
    1085 1085   "[SLEEPTIME]", f"{sleep_time}"
    skipped 1255 lines
  • ■ ■ ■ ■ ■
    ghauri/ghauri.py
    skipped 98 lines
    99 99   conf.skip_urlencoding = skip_urlencoding
    100 100   conf.confirm_payloads = confirm_payloads
    101 101   conf.safe_chars = safe_chars
     102 + conf.timesec = timesec
    102 103   logger.start("starting")
    103 104   if not force_ssl:
    104 105   ssl._create_default_https_context = ssl._create_unverified_context
    skipped 718 lines
Please wait...
Page is in error, reload to recover