File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -251,10 +251,27 @@ def payload_brain(ipaddr):
251251 print ('>> Sending {}...' .format (payloads [choice ]))
252252 content = buf .read ()
253253 send_payload (ipaddr , 9020 , content )
254+ send_another (ipaddr )
254255 else :
255256 print ('>> No payload sent' )
256257
257258
259+ def send_another (ipaddr ):
260+ choice = 0
261+ while choice != 'Y' and choice != 'N' :
262+ choice = input ('Send another payload? (Y/n): ' )
263+ try :
264+ choice = choice .upper ()
265+ except (ValueError , NameError ):
266+ choice = 0
267+ if choice == 'Y' :
268+ thread = threading .Thread (name = 'Payload_Brain' ,
269+ target = payload_brain ,
270+ args = (ipaddr ,),
271+ daemon = True )
272+ thread .start ()
273+
274+
258275def send_payload (hostname , port , content ):
259276 """Netcat implementation"""
260277 soc = socket .socket (socket .AF_INET , socket .SOCK_STREAM )
You can’t perform that action at this time.
0 commit comments