Update dev_block.tsv
Browse files- dev_block.tsv +2 -2
dev_block.tsv
CHANGED
@@ -6,13 +6,13 @@ For each tgtPort in tgtPorts call the function Thread with arguments connScan as
|
|
6 |
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)
|
7 |
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)
|
8 |
If preNum is not equal to 0 assing to preNum seqNum if preNum != 0: \n preNum = seqNum
|
9 |
-
|
10 |
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
|
11 |
Else assign to pktCount at key stream the value 1 else: \n pktCount[stream] = 1
|
12 |
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
|
13 |
Except return an empty string except: \n return ''
|
14 |
If rcode is equal to 3 exit function with value True if rcode == 3: \n return True
|
15 |
If url is equal to None call the function exit with argument 0 if url == None: \n exit(0)
|
16 |
-
|
17 |
try to call function gethostbyaddr with argument tgtIP assign the result to tgtName try: \n tgtName = gethostbyaddr(tgtIP)
|
18 |
If the function dnsQRTest returns True increment unAnsReqs of one if dnsQRTest(pkt): \n unAnsReqs = unAnsReqs + 1
|
|
|
6 |
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)
|
7 |
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)
|
8 |
If preNum is not equal to 0 assing to preNum seqNum if preNum != 0: \n preNum = seqNum
|
9 |
+
except exit function except: \n return
|
10 |
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
|
11 |
Else assign to pktCount at key stream the value 1 else: \n pktCount[stream] = 1
|
12 |
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
|
13 |
Except return an empty string except: \n return ''
|
14 |
If rcode is equal to 3 exit function with value True if rcode == 3: \n return True
|
15 |
If url is equal to None call the function exit with argument 0 if url == None: \n exit(0)
|
16 |
+
Except do nothing except: \n pass
|
17 |
try to call function gethostbyaddr with argument tgtIP assign the result to tgtName try: \n tgtName = gethostbyaddr(tgtIP)
|
18 |
If the function dnsQRTest returns True increment unAnsReqs of one if dnsQRTest(pkt): \n unAnsReqs = unAnsReqs + 1
|