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

Missing packages and commands while installing and running #131

Closed
ppazos opened this issue Mar 7, 2018 · 11 comments
Closed

Missing packages and commands while installing and running #131

ppazos opened this issue Mar 7, 2018 · 11 comments

Comments

@ppazos
Copy link

ppazos commented Mar 7, 2018

I'm trying to test sniper, and I'm having issues with the installation and that might affect the run.

Not sure if this is an issue of the installer or a non satisfied prerequisite to install sniper.

= Install issues

Package rubygems is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  ruby

E: Unable to locate package eyewitness
E: Unable to locate package wafw00f
E: Unable to locate package metagoofil
E: Unable to locate package clusterd
E: Package 'rubygems' has no installation candidate
E: Unable to locate package sslyze
E: Unable to locate package arachni
E: Unable to locate package uniscan
E: Unable to locate package unicornscan
E: Unable to locate package dirb
E: Unable to locate package dnsrecon
E: Unable to locate package php
E: Unable to locate package php-curl
E: Unable to locate package wpscan
E: Unable to locate package sqlmap
E: Unable to locate package enum4linux
E: Unable to locate package cisco-torch
E: Unable to locate package metasploit-framework
E: Unable to locate package theharvester
E: Unable to locate package dnsenum
E: Unable to locate package smtp-user-enum
E: Unable to locate package amap
Reading package lists... Done

...

 + -- --=[This script will install findsploit under /usr/share/findsploit.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package exploitdb


...

E: Unable to locate package dnsenum
 + -- --=[Done!
./install.sh: line 120: msfdb: command not found
./install.sh: line 121: msfdb: command not found

= Run issues


====================================================================================
 RUNNING TCP PORT SCAN 
====================================================================================
/usr/bin/sniper: line 1440: nmap: command not found
====================================================================================
 RUNNING UDP PORT SCAN 
====================================================================================
/usr/bin/sniper: line 1450: nmap: command not found

...

grep: /usr/share/sniper/loot/workspace/xxxx/nmap/nmap-www.xxxx.com.xml: No such file or directory

...

SCANNING FOR COMMON VULNERABILITIES 
====================================================================================
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- nmap/program (LoadError)
	from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
	from yasuo.rb:25:in `<main>'

@1N3
Copy link
Owner

1N3 commented Mar 7, 2018

which distro are you installing from?

@ppazos
Copy link
Author

ppazos commented Mar 7, 2018

@1N3 I'm on Linux Mint 17.3, based on Ubuntu 14.04

@1N3
Copy link
Owner

1N3 commented Mar 7, 2018

ah! yeah, unfortunately, as of right now, sniper is only officially supported on Kali Linux. The package dependencies vary greatly from Kali to Ubuntu, so it's a little tough keeping the dependencies in line. I would like to add Ubuntu support eventually but in the meantime, docker is the only real solution to run from other distros. There's instructions to run from docker in the README if you're interested. Just keep in mind that the docker image isn't always up to date with the latest sniper release so you may need to wait for 4.0 via docker until @menzow can build the new image.

@ppazos
Copy link
Author

ppazos commented Mar 7, 2018

@1N3 thanks! is there any documentation with the list of dependencies that I can use to install required packages manually?

@1N3
Copy link
Owner

1N3 commented Mar 7, 2018

No prob! The install.sh has all of the required dependency packages. You can use that as a reference which should be everything you'll need. If not, let me know.

@ppazos
Copy link
Author

ppazos commented Mar 7, 2018

@1N3 interesting, if dependencies are on the install, why not all of them get installed during the installation process?

@1N3
Copy link
Owner

1N3 commented Mar 7, 2018

Ubuntu and other Linux distros sometimes use different names for the same packages in some cases. I believe in other cases, the packages are just plain not available under Ubuntu without 3rd party repos, etc.

@ppazos
Copy link
Author

ppazos commented Mar 7, 2018

gotcha!

@ppazos
Copy link
Author

ppazos commented Mar 8, 2018

@1N3 one last question, I decided to create a VM with Kali. Is there a way to uninstall the packages installed by the failed install on linux mint?

@1N3
Copy link
Owner

1N3 commented Mar 8, 2018

yeah, best bet is running the ./uninstall.sh script in the sniper directory which should remove everything installed by sniper.

@ppazos
Copy link
Author

ppazos commented Mar 8, 2018

wonderful

@ppazos ppazos closed this as completed Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants