1N3 / Sn1per

Attack Surface Management Platform
https://sn1persecurity.com
Other
8.08k stars 1.84k forks source link

Missing packages and commands while installing and running #131

Closed ppazos closed 6 years ago

ppazos commented 6 years ago

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 commented 6 years ago

which distro are you installing from?

ppazos commented 6 years ago

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

1N3 commented 6 years ago

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 commented 6 years ago

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

1N3 commented 6 years ago

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 commented 6 years ago

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

1N3 commented 6 years ago

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 commented 6 years ago

gotcha!

ppazos commented 6 years ago

@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 commented 6 years ago

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

ppazos commented 6 years ago

wonderful