Projects STRLCPY ghauri Commits b76f9400
🤬
  • updated code for minor fixes in case of length extraction..

  • Loading...
  • r0oth3x49 committed 1 year ago
    b76f9400
    1 parent 3c1b09e2
  • ■ ■ ■ ■
    ghauri/core/extract.py
    skipped 1206 lines
    1207 1207   "Ghauri couldn't determine the number if character(s) in length query"
    1208 1208   )
    1209 1209   length = 0
    1210  - if noc > 1:
     1210 + if noc >= 1:
    1211 1211   if not suppress_output:
    1212 1212   logger.info(f"retrieving the length of query output")
    1213 1213   length_extraction_payloads = LENGTH_PAYLOADS.get(backend)
    skipped 1127 lines
  • ■ ■ ■ ■ ■ ■
    ghauri/core/inject.py
    skipped 89 lines
    90 90   is_multipart=conf.is_multipart,
    91 91   timeout=timeout,
    92 92   )
     93 + if attack.status_code == 401:
     94 + logger.warning(
     95 + "It seems the session got expired, update the session and re-run"
     96 + )
     97 + logger.end("ending")
     98 + exit(0)
    93 99   except URLError as e:
    94 100   logger.critical(f"error: {e}")
    95 101   logger.end("ending")
    skipped 15 lines
Please wait...
Page is in error, reload to recover