Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running sniper on Ubuntu 14.04 64-bit #20

Closed
JayMaree opened this issue Jan 2, 2016 · 10 comments
Closed

Running sniper on Ubuntu 14.04 64-bit #20

JayMaree opened this issue Jan 2, 2016 · 10 comments

Comments

@JayMaree
Copy link

JayMaree commented Jan 2, 2016

./sniper: line 81: whois: command not found
./sniper: line 82: theharvester: command not found
./sniper: line 83: theharvester: command not found
./sniper: line 84: theharvester: command not found
./sniper: line 85: theharvester: command not found
./sniper: line 86: dnsrecon: command not found
./sniper: line 87: dnsrecon: command not found
./sniper: line 88: dnsrecon: command not found
./sniper: line 89: dnsenum: command not found
./sniper: line 91: shodan: command not found

I started ./sniper on a fully up to date Ubuntu VM.

@1N3
Copy link
Owner

1N3 commented Jan 2, 2016

Thanks for the heads up.. did you by chance run the install.sh script?

@1N3
Copy link
Owner

1N3 commented Jan 3, 2016

I fixed some options in the setup.sh to install theHarvester but let me know if this is still an issue.

@1N3 1N3 closed this as completed Jan 3, 2016
@JayMaree
Copy link
Author

JayMaree commented Jan 4, 2016

Still the same, got the following errors:
[1]
./sniper: line 89: theHarvester: command not found
./sniper: line 90: theHarvester: command not found
./sniper: line 91: theHarvester: command not found
./sniper: line 92: theHarvester: command not found
./sniper: line 93: dnsrecon: command not found
./sniper: line 94: dnsrecon: command not found
./sniper: line 95: dnsrecon: command not found
./sniper: line 96: dnsenum: command not found
./sniper: line 98: shodan: command not found

[2]
Failed to open XML output file loot/nmap-veiling.infotheek.com.xml for writing
QUITTING!

[3]
./sniper: line 667: cd: yasuo: No such file or directory
ruby: No such file or directory -- yasuo.rb (LoadError)
./sniper: line 669: cd: ../BruteX: No such file or directory
./sniper: line 670: ./brutex: No such file or directory
mv: cannot stat ‘loot/*’: No such file or directory

A few things works fine now, like the Shodan install step. Didn't work either before.

Btw, I'm running the install.sh on a NON-GUI ubuntu vm (digital ocean)

@1N3 1N3 reopened this Jan 4, 2016
@1N3
Copy link
Owner

1N3 commented Jan 4, 2016

I put in a fix for #2 and #3 which should allow you to run your scans. I'll need to look into compatibility issues with Ubuntu though as Sn1per was made primarily for Kali Linux.

@1N3
Copy link
Owner

1N3 commented Feb 17, 2017

You can now run a docker container from any Linux flavor (Check the main project README...) in order to run sniper which should solve your issue. Closing out for now, but let me know if you're still having issues getting it to run.

@1N3 1N3 closed this as completed Feb 17, 2017
@menzow
Copy link
Contributor

menzow commented Feb 21, 2017

@JayMaree @1N3 ; The docker solution is the perfect solution with guaranteed compatibility on any OS that runs docker.

But that doesn't solve the issue at hand: running sn1per on Ubuntu. Your problem is that you're missing specific programs sn1per tries to run. Some sn1per dependencies reside in the kali linux repository.

To install these dependencies you need to add the kali repository to your sources list. This can be done through the following commands:

echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list.d/kali.sources.list
gpg --keyserver pgpkeys.mit.edu --recv-key  ED444FF07D8D0BF6
gpg -a --export ED444FF07D8D0BF6 | apt-key add -
apt-get update 

More info

Now you can manually install each missing dependency, or run the following command to install them all:

apt-get install -y \
	ruby \
	rubygems \
	python \
	dos2unix \
	zenmap \
	sslyze \
	uniscan \
	xprobe2 \
	cutycapt \
	unicornscan \
	waffit \
	host \
	whois \
	dirb \
	dnsrecon \
	curl \
	nmap \
	php \
	php-curl \
	hydra \
	iceweasel \
	wpscan \
	sqlmap \
	nbtscan \
	enum4linux \
	cisco-torch \
	metasploit-framework \
	theharvester \
	dnsenum \
	nikto \
	smtp-user-enum \
	whatweb \
	dnsutils \
	sslscan \
	amap \
	arachni && \
mv /usr/bin/python /usr/bin/python.unknown && \
ln -s /usr/bin/python2.7 /usr/bin/python && \
curl https://bootstrap.pypa.io/get-pip.py | python && \
gem install  \
	mechanize \
	bcrypt \
	net-http-persistent \
	rake \
	ruby-nmap \
	text-table && \
pip install  \
	colorama \
	dnspython \
	ipaddress \
	tldextract \
	urllib3

After installing all dependencies, I'd advice to re-install sn1per through the following command:

git clone https://github.com/1N3/Sn1per.git ~/Sn1per
cd ~/Sn1per
./install.sh

With the previous commands ran you should now have a fully working copy of sn1per installed on your host OS.

@hariom282538
Copy link

SCANNING FOR COMMON VULNERABILITIES

Traceback (most recent call last):
2: from yasuo.rb:34:in <main>' 1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in require'
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- sqlite3 (LoadError)

@hariom282538
Copy link

“brute force file not specified, bay.”

@satyamkumar420
Copy link

modes/normal.sh: line 26: sniper: command not found

@satyamkumar420
Copy link

└─$ sudo ./sniper -t www.linkedin.com
[] Loaded configuration file from /usr/share/sniper/sniper.conf [OK]
[
] Loaded configuration file from /root/.sniper.conf [OK]
[] Saving loot to /usr/share/sniper/loot/ [OK]
[
] Scanning www.linkedin.com [OK]
modes/normal.sh: line 26: sniper: command not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants