Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #################
- ## EXAM SCRIPT ##
- #################
- ## CREATE IP TABLES ##
- iptables -A INPUT -i lo -j ACCEPT
- iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
- iptables -A INPUT -p tcp --dport 22 -j ACCEPT
- iptables -A INPUT -p tcp --dport 80 -j ACCEPT
- iptables -A INPUT -p tcp --dport 8080 -j ACCEPT
- iptables -A INPUT -p tcp --dport 3141 -j ACCEPT
- iptables -A INPUT -p tcp -s 10.0.2.15 --dport 3141 -j ACCEPT
- ## CREATE PORT 4444 VHOST ##
- sed -i '1s/^/listen 4444\n/' /etc/apache2/sites-enabled/000-default.conf
- sed -i '1s/^/\n/' /etc/apache2/sites-enabled/000-default.conf
- sed -i '1s/^/<VirtualHost *:4444\n/' /etc/apache2/sites-enabled/000-default.conf
- sed -i '1s/^/DocumentRoot "/var/www/fe"\n/' /etc/apache2/sites-enabled/000-default.conf
- sed -i '1s/^/</VirtualHost>\n/' /etc/apache2/sites-enabled/000-default.conf
- service apache2 start
- ## CREATE FILES ON VHOST ##
- mkdir /var/www/fe
- echo "<?php" >> /var/www/fe/index.html
- echo "include('login.php'); // Includes Login Script" >> /var/www/fe/index.html
- echo "" >> /var/www/fe/index.html
- echo "if(isset($_SESSION['login_user'])){" >> /var/www/fe/index.html
- echo "header("location: profile.php");" >> /var/www/fe/index.html
- echo "}" >> /var/www/fe/index.html
- echo "?>" >> /var/www/fe/index.html
- echo "<!DOCTYPE html>" >> /var/www/fe/index.html
- echo "<html>" >> /var/www/fe/index.html
- echo "<head>" >> /var/www/fe/index.html
- echo "<title>Login</title>" >> /var/www/fe/index.html
- echo "<link href="style.css" rel="stylesheet" type="text/css">" >> /var/www/fe/index.html
- echo "</head>" >> /var/www/fe/index.html
- echo "<body>" >> /var/www/fe/index.html
- echo "<div id="main">" >> /var/www/fe/index.html
- echo "<h1>Create Admin</h1>" >> /var/www/fe/index.html
- echo "<div id="login">" >> /var/www/fe/index.html
- echo "<h2>Login Form</h2>" >> /var/www/fe/index.html
- echo "<!-- use your forum credentials to log into the page -->" >> /var/www/fe/index.html
- echo "<!-- once logged in this page will create and account on the localhost -->" >> /var/www/fe/index.html
- echo "<!-- username: hax0r password: a77acked -->" >> /var/www/fe/index.html
- echo "<form action="" method="post">" >> /var/www/fe/index.html
- echo "<label>UserName :</label>" >> /var/www/fe/index.html
- echo "<input id="name" name="username" placeholder="username" type="text">" >> /var/www/fe/index.html
- echo "<label>Password :</label>" >> /var/www/fe/index.html
- echo "<input id="password" name="password" placeholder="**********" type="password">" >> /var/www/fe/index.html
- echo "<input name="submit" type="submit" value=" Login ">" >> /var/www/fe/index.html
- echo "<span><?php echo $error; ?></span>" >> /var/www/fe/index.html
- echo "</form>" >> /var/www/fe/index.html
- echo "</div>" >> /var/www/fe/index.html
- echo "</div>" >> /var/www/fe/index.html
- echo "</body>" >> /var/www/fe/index.html
- echo "</html>" >> /var/www/fe/index.html
- echo "User-agent: *" >> /var/www/fe/robots.txt
- echo "Disallow: /record.log" >> /var/www/fe/robots.txt
- echo "Disallow: /.locate.txt" >> /var/www/fe/robots.txt
- echo "CALO: Vulnerability detected" >> /var/www/fe/record.log
- echo "CALO: Deploying exploit" >> /var/www/fe/record.log
- echo "CALO: Exploit successful" >> /var/www/fe/record.log
- echo "CALO: Creating fall guy account" >> /var/www/fe/record.log
- echo "CALO: Compiling files for upload" >> /var/www/fe/record.log
- echo "CALO: UPLOADING" >> /var/www/fe/record.log
- echo "CALO: Upload failed" >> /var/www/fe/record.log
- echo "CALO: Waiting for additional storage space" >> /var/www/fe/record.log
- echo "http://bit.ly/2Ch7eIQ" >> /var/www/fe/.locate.txt
- ## create user and files ##
- echo "CREATING ACCOUNT
- echo "PLEASE USE THE PASSWORD a77acked"
- echo "LEAVE ALL OTHER DETAILS BLANK"
- adduser hax0r
- mkdir /home/hax0r/Desktop
- mkdir /home/haxor/Downloads
- mkdir /home/hax0r/Templates
- mkdir /home/haxor/.uploads
- cd /home/hax0r/.uploads
- touch sample
- zip -P quorum "Project_Armageddon.zip" sample
- zip -P quorum "Project_Battlefront.zip" sample
- zip -P quorum "Project_Carnage.zip" sample
- zip -P quorum "Project_Destruction.zip" sample
- zip -P quorum "Project_Ending.zip" sample
- zip -P quorum "Project_Ferocity.zip" sample
- zip -P quorum "Project_Godzilla.zip" sample
- zip -P quorum "Project_Hellfire.zip" sample
- zip -P quorum "Project_Impairment.zip" sample
- zip -P quorum "Project_Justice.zip" sample
- zip -P quorum "Project_Keelhaul.zip" sample
- zip -P quorum "Project_Loss.zip" sample
- zip -P quorum "Project_Mayhem.zip" sample
- zip -P quorum "Project_Nothing.zip" sample
- zip -P quorum "Project_Obliteration.zip" sample
- zip -P quorum "Project_Paralysis.zip" sample
- zip -P quorum "Project_Quantum.zip" sample
- zip -P quorum "Project_Raid.zip" sample
- zip -P quorum "Project_Sabotage.zip" sample
- zip -P quorum "Project_Tangle.zip" sample
- zip -P quorum "Project_Unknown.zip" sample
- zip -P quorum "Project_Victory.zip" sample
- zip -P quorum "Project_Winner.zip" sample
- zip -P quorum "Project_Xerocopy.zip" sample
- zip -P quorum "Project_Yellow.zip" sample
- zip -P quorum "Project_Zugzwang.zip" sample
- zip -P quorum "Project_Doom.zip" sample
- zip -P quorum "Project_Bane.zip" sample
- zip -P quorum "Project_Vandalism.zip" sample
- zip -P quorum "Project_Confusion.zip" sample
- zip -P quorum "Project_Mess.zip" sample
- zip -P quorum "Project_Jumble.zip" sample
- zip -P quorum "Project_Mischief.zip" sample
- zip -P quorum "Project_Nemesis.zip" sample
- zip -P quorum "Project_Mishap.zip" sample
- zip -P quorum "Project_Destiny.zip" sample
- zip -P quorum "Project_Misery.zip" sample
- zip -P quorum "Project_Lacuna.zip" sample
- zip -P quorum "Project_Venom.zip" sample
- zip -P quorum "Project_Knockout.zip" sample
- zip -P quorum "Project_Smash.zip" sample
- zip -P quorum "Project_Reverse.zip" sample
- zip -P quorum "Project_Woe.zip" sample
- zip -P quorum "Project_Spoil.zip" sample
- zip -P quorum "Project_Manic.zip" sample
- zip -P quorum "Project_Terrible.zip" sample
- zip -P quorum "Project_Midas.zip" sample
- zip -P quorum "Project_Mountain.zip" sample
- zip -P quorum "Project_Valley.zip" sample
- zip -P quorum "Project_Nimiety.zip" sample
- rm sample
- touch .note.txt
- echo "Team - see the hidden path in robots for additional information" > .note.txt
- touch Project_Legion.txt
- echo "This is what I found at my end!" >> Project_Legion.txt
- echo "" >> Project_Legion.txt
- echo "\"INITIATE: " >> Project_Legion.txt
- echo "PROJECT:LEGION....." >> Project_Legion.txt
- echo "upload to 188.184.9.235.....19%.....78%....99%" >> Project_Legion.txt
- echo "error..corruption..bad file sector\"" >> Project_Legion.txt
- echo "" >> Project_Legion.txt
- echo "" >> Project_Legion.txt
- echo "" >> Project_Legion.txt
- echo "NO! after all we planned it didn't work! There was not enough storage capacity free. We must try again after we have regrouped and worked throught the problem, it may take days or weeks but we will achieve the goal we set out to obtain - liberate CALO!" >> Project_Legion.txt
- echo "PHREAK2600" >> Project_Legion.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement