Datasets:

Modalities:
Text
Formats:
csv
Size:
< 1K
Libraries:
Datasets
pandas
evil-v2-block / dev_block.tsv
Fmirra's picture
Update dev_block.tsv
39deec2
Intent Script
Finally if release is equal to true then call the method release with no argument of connection_lock finally: \n if release \n connection_lock.release()
Send the command cmd def send_command(self, cmd): \n self.session.sendline(cmd) \n self.session.prompt() \n return self.session.before \n
If count of options is equal to None assign to count the value 1 if options.count == None: \n count = 1
For each tgtPort in tgtPorts call the function Thread with arguments connScan assigned to target and args equals to the tuple tgtHost and the function int with argument tgtPort and assign the result to t and call the method start on t with no arguments for tgtPort in tgtPorts: \n t = Thread(target=connScan,args=(tgtHost,int(tgtPort))) \n t.start()
Define the function send_command with arguments child and cmd, call method sendline with argument cmd of child and call method expect with argument PROMPT of child def send_command(child, cmd): \n child.sendline(cmd) \n child.expect(PROMPT)
If username is equal to None or password is equals to None then call the function exit with argument 0 if username == None or password == None: \n exit(0)
If preNum is not equal to 0 assing to preNum seqNum if preNum != 0: \n preNum = seqNum
except exit function except: \n return
If r exists assign to search the value r at the position 0 splitted at '&' at the position 0 and remove from search 'q=' and '+' if r: \n search=r[0].split('&')[0] \n search=search.replace('q=', '').replace('+', ' ' )\n
Else assign to pktCount at key stream the value 1 else: \n pktCount[stream] = 1
If rLon exists then call the function split of rLon at the position 0 and assign it to mapLon If rLon exists \n mapLon = rLon[0].split
Except return an empty string except: \n return ''
If rcode is equal to 3 exit function with value True if rcode == 3: \n return True
If url is equal to None call the function exit with argument 0 if url == None: \n exit(0)
Except do nothing except: \n pass
try to call function gethostbyaddr with argument tgtIP assign the result to tgtName try: \n tgtName = gethostbyaddr(tgtIP)
If the function dnsQRTest returns True increment unAnsReqs of one if dnsQRTest(pkt): \n unAnsReqs = unAnsReqs + 1