gfek / Lepus

Subdomain finder
BSD 3-Clause "New" or "Revised" License
359 stars 45 forks source link

bug #3

Closed 687766616e closed 5 years ago

687766616e commented 5 years ago
python3 lepus.py --takeover --portscan --reverse --permutate -zt -t 10 test.com.us

...
[*]-Loading Old Findings...                                         \__ Unique subdomains loaded: 0
Traceback (most recent call last):                                  File "lepus.py", line 71, in <module>                               old_findings, old_resolved_public, last_run, collector_hosts = utilities.MiscHelpers.loadOldFindings(args.domain)                 File "/data/data/com.termux/files/home/sub5/utilities/MiscHelpers.py", line 180, in loadOldFindings                                   return OF, ORP, last_run, collector_results                   UnboundLocalError: local variable 'last_run' referenced before assignment
$ 
GKNSB commented 5 years ago

Hey there huitc,

The only way we've been able to replicate the error is by manually removing the .timestamp file from the respective domain folder in ./results/. The file is normally needed during run of the program. In case you actually delete all the contents of the domain folder, the error does not occur and all content is regenerated.

Is there some specific reason you actually deleted the timestamp file for? Could you share your replication steps if that wasn't actually the way you encountered the error?

687766616e commented 5 years ago
python3 lepus.py --takeover --portscan --reverse --permutate -zt -t 100 canttellyou.com

[*]-Searching Entrust Certificates...
  \__ Expecting value: line 1 column 1 (char 0)
687766616e commented 5 years ago

Hey there huitc,

The only way we've been able to replicate the error is by manually removing the .timestamp file from the respective domain folder in ./results/. The file is normally needed during run of the program. In case you actually delete all the contents of the domain folder, the error does not occur and all content is regenerated.

Is there some specific reason you actually deleted the timestamp file for? Could you share your replication steps if that wasn't actually the way you encountered the error?

Maybe it was because I suddenly pressed ctrl + c or reboot my pc... something like that....😅

687766616e commented 5 years ago

Or is it due to a connection problem? I'm not so sure either

GKNSB commented 5 years ago

It mustn't have been due to connectivity problems. It was probably because the execution was forcefully interrupted for some reason. Issue can be closed.

687766616e commented 5 years ago

how about this one?😅

$ python3 lepus.py --takeover --portscan --reverse --permutate -zt -t 100 test.com.us
         ______  _____           ______
 |      |______ |_____) |     | (_____
 |_____ |______ |       |_____| ______)
                                v3.1.0
[*]-Retrieving DNS Records...
(hidden)

[*]-Loading Old Findings...
  \__ Unique subdomains loaded: 0
Traceback (most recent call last):
  File "lepus.py", line 71, in <module>
    old_findings, old_resolved_public, last_run, collector_hosts = utilities.MiscHelpers.loadOldFindings(args.domain)
  File "/data/data/com.termux/files/home/sub5/utilities/MiscHelpers.py", line 180, in loadOldFindings
    return OF, ORP, last_run, collector_results
UnboundLocalError: local variable 'last_run' referenced before assignment
$