jonluca / Anubis

Subdomain enumeration and information gathering tool
https://jonlu.ca/anubis/
MIT License
1.18k stars 151 forks source link

error when installing via pip3 segfault #25

Closed jawz101 closed 6 years ago

jawz101 commented 6 years ago

@jonluca not quite sure how to do a stack trace

pip3 install anubis-netsec ... downloads all the files... Successfully built censys SSLyze docopt python-nmap shodan tls-parser click-plugins pycparser Installing collected packages: certifi, urllib3, chardet, idna, requests, netaddr, censys, dnspython, setuptools, nassl, asn1crypto, six, pycparser, cffi, cryptography, tls-parser, SSLyze, docopt, python-nmap, click, click-plugins, colorama, XlsxWriter, shodan, anubis-netsec Successfully installed SSLyze-1.3.4 XlsxWriter-1.0.2 anubis-netsec-0.7.6 asn1crypto-0.24.0 censys-0.0.8 certifi-2018.1.18 cffi-1.11.4 chardet-3.0.4 click-6.7 click-plugins-1.0.3 colorama-0.3.9 cryptography-2.1.4 dnspython-1.15.0 docopt-0.6.2 idna-2.6 nassl-1.0.3 netaddr-0.7.19 pycparser-2.18 python-nmap-0.6.1 requests-2.18.4 setuptools-38.5.1 shodan-1.7.7 six-1.11.0 tls-parser-1.2.1 urllib3-1.22 Segmentation fault (core dumped)

kern.log Feb 24 17:02:08 kernel: [ 311.672024] random: crng init done Feb 24 17:02:14 kernel: [ 317.955766] pip3[1638]: segfault at a9 ip 0000000000442f24 sp 00007ffda779e648 error 4 in python3.6[400000+3bf000] Feb 24 17:05:22 kernel: [ 505.137210] pip3[1932]: segfault at 22e728 ip 00000000004dc698 sp 00007ffca67b2a00 error 4 in python3.6[400000+3bf000] Feb 24 17:17:56 kernel: [ 1259.481690] pip3[11814]: segfault at 22e728 ip 00000000004dc698 sp 00007ffe9eed6350 error 4 in python3.6[400000+3bf000]

syslog Feb 24 17:17:56 kernel: [ 1259.481690] pip3[11814]: segfault at 22e728 ip 00000000004dc698 sp 00007ffe9eed6350 error 4 in python3.6[400000+3bf000]

jawz101 commented 6 years ago

... unless it's the crash file under /var/logs/_usr_bin_pip3.1000.crash maybe?

maybe this is what you need? [New LWP 13514] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/usr/bin/python3 /usr/bin/pip3 install anubis-netsec'. Program terminated with signal SIGSEGV, Segmentation fault.

0 PyType_Ready (type=type@entry=0x7fe74f235920 )

at ../Objects/typeobject.c:4955

4955 ../Objects/typeobject.c: No such file or directory.

jawz101 commented 6 years ago

maybe it installed using sudo? At this point I don't know how to execute the program. I type anubis in terminal and it has no idea what it is.

jonluca commented 6 years ago

Sorry for the late reply. I see that you closed this - did you manage to get it to install properly?

jawz101 commented 6 years ago

maybe. I can't quite figure out how to execute it if it's installed. I think pip3 installs modules/packages to my home directory. I deleted the folder that contained all of the files and then reran the install and sometimes it would install without error and other times it wouldn't. One reason I put in that suggestion of flatpak/snap in case the problems with installation was if my problems were due to my operating system's environment whereas something self contained might eliminate cross-platform issues.

And then to execute them you run python3 -m anubis? Maybe? When I do that it says something like a module cannot be run directly or something.

This is my first time dealing with python modules and I haven't found any resources that walk me through how to interact with something installed via a repository like this.

jonluca commented 6 years ago

How it should work normally:

You run pip3 install anubis-netsec, and it completes normally. Then, anubis should basically just be linked in /usr/local/bin. Provided that folder is in your $PATH, you should just be able to call anubis from the commandline line.

See this screenshot for what I mean

jawz101 commented 6 years ago

Thanks. I'll see if I can try again tonight. This tool looks cool and I wanted to enumerate subdomains to expand a hostfile I've made for mobile ad/analytic networks. :)