I hereby claim:
- I am thisisnottheuseryouarelookingfor on github.
- I am reapzor (https://keybase.io/reapzor) on keybase.
- I have a public key ASDv9HCvKa3eAKU36PO1O4lc-uo83sJAk7ABm7XKA6migAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
MYSQLROOT_PASS="random_password" | |
DOFLER_ROOT="dbUser" | |
DOFLER_PASS="dbUser_pass" | |
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install pkg-config libpng12-dev libjpeg-dev libgif-dev git-core libpcap-dev python-dev ettercap-text-only tshark build-essential libmysqlclient-dev mysql-server sqlite3 python-pip python-setuptools | |
mysqladmin -u root password $MYSQLROOT_PASS | |
mysql -u root --password=$MYSQLROOT_PASS -e "create database dofler;" | |
mysql -u root --password=$MYSQLROOT_PASS -e "create user '$DOFLER_ROOT'@'localhost' identified by '$DOFLER_PASS';" | |
mysql -u root --password=$MYSQLROOT_PASS -e "grant all privileges on dofler.* to '$DOFLER_ROOT'@'localhost';" |
#block generic recon | |
iptables -A INPUT -p tcp --tcp-flags ALL NONE -j DROP # null | |
iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP #kill syn flood | |
iptables -A INPUT -p tcp --tcp-flags ALL ALL -j DROP # xmas | |
# allow all on localhost | |
iptables -A INPUT -i lo -j ACCEPT | |
#allow web traffic |
yum -y update | |
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
yum --enablerepo=remi install httpd mysql-server php php-mysql git | |
service httpd start | |
service mysqld start | |
mysql_secure_installation |