Update balsamic.py

main
witchdocsec 2024-05-18 04:40:46 +01:00 committed by GitHub
parent fc080ae720
commit 716c796a1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -54,8 +54,10 @@ def socksend(rhost,rport,payload, enc, steps=0):
i=0
while i < steps:
s.sendall("arb".encode("utf-8"))
s.recv(1024)
i+=1
s.sendall(payload)
s.recv(1024)
s.close()
def socklisten(lport,payload, enc, steps=0):
lport=int(lport)
steps=int(steps)
@ -71,7 +73,8 @@ def socklisten(lport,payload, enc, steps=0):
with conn:
while i < steps:
conn.sendall("arb".encode("utf-8"))
conn.recv(1024)
i+=1
conn.sendall(payload)
conn.recv(1024)
conn.close()