Browse Source

Potatoes Potatoes

Roman Hergenreder 6 months ago
parent
commit
1cded84850
7 changed files with 16 additions and 9 deletions
  1. 0 1
      linpeas.sh
  2. 11 3
      update.sh
  3. 5 5
      upload_file.py
  4. BIN
      win/GodPotato.exe
  5. BIN
      win/JuicyPotato.exe
  6. BIN
      win/JuicyPotato64.exe
  7. BIN
      win/SweetPotato.exe

File diff suppressed because it is too large
+ 0 - 1
linpeas.sh


+ 11 - 3
update.sh

@@ -5,9 +5,13 @@ download () {
   wget --no-verbose "$1" -O "$tmpfile"
   status=$?
   if [ $status -eq 0 ]; then
-    old_permissions=$(stat -c "%a" "$2")
-    mv "$tmpfile" "$2"
-    chmod "$old_permissions" "$2"
+    if [ -f "$2" ]; then
+      old_permissions=$(stat -c "%a" "$2")
+      mv "$tmpfile" "$2"
+      chmod "$old_permissions" "$2"
+    else
+      mv "$tmpfile" "$2"
+    fi
   fi
 }
 
@@ -61,3 +65,7 @@ fi
 echo "Updating windows tools…"
 download https://live.sysinternals.com/accesschk.exe win/accesschk.exe
 download https://live.sysinternals.com/accesschk64.exe win/accesschk64.exe
+download https://github.com/k4sth4/Juicy-Potato/raw/main/x86/jp32.exe win/JuicyPotato.exe
+download https://github.com/k4sth4/Juicy-Potato/raw/main/x64/jp.exe win/JuicyPotato64.exe
+download https://github.com/uknowsec/SweetPotato/raw/master/SweetPotato-Webshell-new/bin/Release/SweetPotato.exe win/SweetPotato.exe
+download https://github.com/BeichenDream/GodPotato/releases/latest/download/GodPotato-NET4.exe win/GodPotato.exe

+ 5 - 5
upload_file.py

@@ -14,7 +14,7 @@ def serve_file(listen_sock, path, forever=False):
             try:
                 print('[+] Connection from', client_address)
 
-                with open(FILENAME, "rb") as f:
+                with open(path, "rb") as f:
                     content = f.read()
                     connection.sendall(content)
 
@@ -31,7 +31,7 @@ if __name__ == "__main__":
 
     parser = argparse.ArgumentParser(description="File Transfer using netcat")
     parser.add_argument("--port", type=int, required=False, default=None, help="Listening port")
-    parser.add_argument("--path", type=str, required=True, help="Path to the file you wish to upload")
+    parser.add_argument(type=str, dest="path", help="Path to the file you wish to upload")
     args = parser.parse_args()
 
     path = args.path
@@ -40,12 +40,12 @@ if __name__ == "__main__":
         exit(1)
 
     address = util.get_address()
-    sock = util.open_server(address, args.port)
-    if not sock:
+    listen_sock = util.open_server(address, args.port)
+    if not listen_sock:
         exit(1)
 
     print("[+] Now listening, download file using:")
-    print('nc %s %d > %s' % (address, sock.getsockname()[1], os.path.basename(path)))
+    print('nc %s %d > %s' % (address, listen_sock.getsockname()[1], os.path.basename(path)))
     print()
 
     serve_file(listen_sock, path, forever=True)

BIN
win/GodPotato.exe


BIN
win/JuicyPotato.exe


BIN
win/JuicyPotato64.exe


BIN
win/SweetPotato.exe


Some files were not shown because too many files changed in this diff