Skip to content

Commit 3183397

Browse files
authored
small improvements
1 parent ae1b6fc commit 3183397

File tree

1 file changed

+26
-23
lines changed

1 file changed

+26
-23
lines changed

intrec.sh

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,11 @@ function nix_util()
199199
notification "Attempting to resolve."
200200
sleep 2
201201

202-
sudo apt-get install python-setuptools
203-
notification "Python setuptools has been installed, installing pip..."
202+
notification "Installing Python setuptools and pip"
203+
sudo apt-get install python-setuptools python-pip
204+
notification "Operation completed"
204205
sleep 2
205206

206-
cwd=$(pwd)
207-
git clone https://github.com/pypa/pip.git && cd pip
208-
python setup.py install && cd $cwd
209-
rm -rf pip
210-
211-
notification "Pip has been succesfully installed."
212-
sleep 2
213207
fi
214208
fi
215209

@@ -265,7 +259,7 @@ function mimir_install()
265259
notification "Installing dependencies."
266260
sleep 1.5
267261

268-
sudo pip install selenium blessings ipwhois
262+
sudo -H pip install selenium blessings ipwhois
269263
sudo apt-get install python-pycurl
270264
notification "Checking PyCurl for OpenSSL support..."
271265
sleep 1.5
@@ -428,7 +422,7 @@ function QuickScan()
428422
git clone https://github.com/NullArray/QuickScan.git
429423
notification "Installing dependencies."
430424
sleep 1
431-
sudo pip install blessings whois
425+
sudo -H pip install blessings whois
432426
notification "QuickScan was successfully installed."
433427
fi
434428
}
@@ -443,7 +437,7 @@ function DNSRecon()
443437
git clone https://github.com/darkoperator/dnsrecon.git
444438
notification "Installing dependencies"
445439
sleep 1
446-
sudo pip install dnspython netaddr
440+
sudo -H pip install dnspython netaddr
447441
notification "DNSRecon was successfully installed."
448442
fi
449443
}
@@ -458,7 +452,7 @@ function Sublist3r()
458452
git clone https://github.com/aboul3la/Sublist3r.git
459453
notification "Installing dependencies."
460454
sleep 1
461-
sudo pip install argparse dnspython requests
455+
sudo -H pip install argparse dnspython requests
462456
notification "Sublist3r was successfully installed."
463457
fi
464458
}
@@ -473,7 +467,7 @@ function TekDefense()
473467
git clone https://github.com/1aN0rmus/TekDefense-Automater.git
474468
notification "Installing dependencies."
475469
sleep 1
476-
sudo pip install argparse requests
470+
sudo -H pip install argparse requests
477471
notification "TekDefense-Automater was successfully installed."
478472
fi
479473
}
@@ -488,7 +482,7 @@ function theHarvester()
488482
git clone https://github.com/laramies/theHarvester.git
489483
notification "Installing dependencies."
490484
sleep 1
491-
sudo pip install requests
485+
sudo -H pip install requests
492486
notification "TheHarvester was successfully installed."
493487
fi
494488
}
@@ -503,8 +497,7 @@ function ioc_parser()
503497
git clone https://github.com/armbues/ioc_parser.git
504498
sleep 1
505499
notification "Installing dependencies."
506-
sudo pip install ioc_parser
507-
sudo pip install beautifulsoup4 requests
500+
sudo -H pip install ioc_parser beautifulsoup4 requests
508501
notification "IOC-Parer was successfully installed."
509502
fi
510503
}
@@ -519,7 +512,7 @@ function pyparser()
519512
git clone https://github.com/NullArray/PyParser-CVE.git
520513
notification "Installing dependencies."
521514
sleep 1
522-
sudo pip install blessings shodan
515+
sudo -H pip install blessings shodan
523516
sudo apt-get install python-pycurl
524517
notification "PyParser-CVE was successfully installed."
525518
fi
@@ -535,7 +528,7 @@ function harbinger()
535528
git clone https://github.com/exp0se/harbinger.git
536529
notification "Installing dependencies"
537530
sleep 1
538-
sudo pip install requests cymon beautifulsoup4
531+
sudo -H pip install requests cymon beautifulsoup4
539532
notification "Harbinger was successfully installed."
540533
fi
541534
}
@@ -550,13 +543,13 @@ function inquisitor()
550543
git clone https://github.com/penafieljlm/inquisitor.git
551544
notification "Installing dependencies"
552545
sleep 1
553-
sudo pip install cython
546+
sudo -H pip install cython
554547

555548
notification "Building..."
556549
sleep 1
557550
cwd=$(pwd)
558551
cd inquisitor
559-
sudo python setup.py install
552+
sudo -H python setup.py install
560553
cd $cwd
561554

562555
notification "Inquisitor was succesfully installed."
@@ -571,9 +564,19 @@ function Spiderfoot()
571564
notification "Installing Spiderfoot."
572565
sleep 1
573566
git clone https://github.com/smicallef/spiderfoot.git
574-
notification "Installing dependencies."
567+
568+
notification "Installing required SSL components."
575569
sleep 1
576-
sudo pip install lxml netaddr M2Crypto cherrypy mako requests bs4
570+
sudo apt-get install libssl-dev
571+
572+
notification "Installing M2Crypto Python OpenSSL wrapper."
573+
sleep 1
574+
sudo apt-get install python-m2crypto
575+
576+
notification "Installing remaining python dependencies."
577+
sleep 1
578+
579+
sudo -H pip install lxml netaddr cherrypy mako requests bs4
577580
notification "Spiderfoot was successfully installed."
578581
fi
579582
}

0 commit comments

Comments
 (0)