UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 91eaf668 authored by spitfire's avatar spitfire
Browse files

Modify net1.sh and nix1_net3.sh scripts

apt-get upgrade has been moved from after the pkg_array installation loop
to before this because it just makes more sense.

Tinkering with the pkg_array install process. Fixed the main issue where
the presense of linux-headers-($uname -r) was breaking things. I'm pretty
sure whoever wrote it meant for it to be $(uname -r), but I'm just
removing it entirely for now because I'm pretty sure its not necessary
to update the kernel headers.

Once the basic installation of services and packages works, I'll mess
with the telnetd service and have it use systemctl instead of xinetd.
parent 6bc70854
No related merge requests found
......@@ -4,9 +4,9 @@ echo 52.247.160.149 git.cybbh.space >> /etc/hosts
sed -i's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y upgrade
pkg_array=({locate,netcat,dnsutils,lsof,ftp,telnet,wireshark,tcpdump,p0f,scapy,nmap,proxychains,pv,nginx,proftpd,gdebi,install,ethtool,git,make,gcc,flex,bison,build-essential,checkinstall,libpcap-dev,libnet1-dev,libpcre3-dev,libnetfilter-queue-dev,iptables-dev,libdumbnet-dev,zlib1g-dev})
for x in ${pkg_array[@]}; do apt-get install -y $x; done
apt-get upgrade
cd /
wget https://git.cybbh.space/CCTC/public/raw/master/heat/networking/packages_and_scripts/daq_2.0.6-1_amd64.deb
wget https://git.cybbh.space/CCTC/public/raw/master/heat/networking/packages_and_scripts/snort_2.9.9.0-1_amd64.deb
......
#!/bin/bash
echo 127.0.0.1 $(hostname) >> /etc/hosts
echo 52.247.160.149 git.cybbh.space >> /etc/hosts
apt-get -y update
apt-get update
apt-get -y upgrade
export DEBIAN_FRONTEND=noninteractive
pkg_array=({locate,dnsutils,lsof,aptitude,ftp,auditd,xinetd,telnetd,samba,git,zip,unzip,figlet,sshpass,hexedit,tree,apache2,gcc,tcc,build-essential,libreadline-dev,libssl-dev,libpq5,libpq-dev,libreadline5,libsqlite3-dev,libpcap-dev,git-core,autoconf,postgresql,pgadmin3,curl,zlib1g-dev,libxml2-dev,libxslt1-dev,libyaml-dev,nmap,python-setuptools,python-dev,hydra,hydra-gtk,john,xrdp,netcat,firefox,figlet,lolcat,ubuntu_desktop,nginx,proftpd,ethtool,ruby,ruby-dev,gem,bundler,qemu})
for x in ${pkg_array[@]}; do apt-get install -y ${x}; done
gem install lolcat bundler
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment