more pholus debug prints
This commit is contained in:
@@ -397,7 +397,7 @@ if (isset($_POST['submit']) && submit && isset($_POST['skinselector_set'])) {
|
|||||||
<div class="log-area">
|
<div class="log-area">
|
||||||
|
|
||||||
<div class="row logs-row">
|
<div class="row logs-row">
|
||||||
<textarea id="pialert_pholus_log" class="logs logs-small" cols="70" rows="10" wrap='off' readonly><?php echo file_get_contents( "./log/pialert_pholus_subp.log" ); ?>
|
<textarea id="pialert_pholus_subp_log" class="logs logs-small" cols="70" rows="10" wrap='off' readonly><?php echo file_get_contents( "./log/pialert_pholus_subp.log" ); ?>
|
||||||
</textarea>
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="row logs-row" >
|
<div class="row logs-row" >
|
||||||
@@ -729,6 +729,12 @@ function scrollDown()
|
|||||||
tempArea = $('#stderr_log');
|
tempArea = $('#stderr_log');
|
||||||
$(tempArea[0]).scrollTop(tempArea[0].scrollHeight);
|
$(tempArea[0]).scrollTop(tempArea[0].scrollHeight);
|
||||||
|
|
||||||
|
tempArea = $('#pialert_pholus_log');
|
||||||
|
$(tempArea[0]).scrollTop(tempArea[0].scrollHeight);
|
||||||
|
|
||||||
|
tempArea = $('#pialert_pholus_subp_log');
|
||||||
|
$(tempArea[0]).scrollTop(tempArea[0].scrollHeight);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function initializeTabs () {
|
function initializeTabs () {
|
||||||
|
|||||||
@@ -798,9 +798,11 @@ def main():
|
|||||||
exit(0)
|
exit(0)
|
||||||
file_print("Press Ctrl-C to exit and print the results")
|
file_print("Press Ctrl-C to exit and print the results")
|
||||||
q = multiprocessing.Queue()
|
q = multiprocessing.Queue()
|
||||||
|
file_print(">>>>>>> Timestamp 0.1: ", timeNow())
|
||||||
pr = multiprocessing.Process(target=Sniffer_Offline, args=(values.interface,q,values.show_ttl,values.d4, values.d6, values.target_mac, values.auto_fake_responses,values.source6,values.source4,values.target_mac,values.target_mac,values.source_mac,values.hlimit))
|
pr = multiprocessing.Process(target=Sniffer_Offline, args=(values.interface,q,values.show_ttl,values.d4, values.d6, values.target_mac, values.auto_fake_responses,values.source6,values.source4,values.target_mac,values.target_mac,values.source_mac,values.hlimit))
|
||||||
pr.start()
|
pr.start()
|
||||||
pr.join()
|
pr.join()
|
||||||
|
file_print(">>>>>>> Timestamp 0.2: ", timeNow())
|
||||||
results=[]
|
results=[]
|
||||||
while not q.empty():
|
while not q.empty():
|
||||||
results.append(q.get())
|
results.append(q.get())
|
||||||
@@ -1020,10 +1022,12 @@ def main():
|
|||||||
if values.rdns_scanning:
|
if values.rdns_scanning:
|
||||||
targets=[]
|
targets=[]
|
||||||
q2 = multiprocessing.Queue()
|
q2 = multiprocessing.Queue()
|
||||||
pr2 = multiprocessing.Process(target=Sniffer, args=(myfilter, values.interface, float(values.sniffer_timeout),q2,values.dns,values.show_ttl, values.dos_ttl,values.conflict, values.ttl,values.d4, values.d6, values.target_mac, values.auto_fake_responses,source_IPv6, source_IPv4, target_mac1, target_mac2,source_mac,values.hlimit,values.workstation,values.printer,values.googlecast,values.airtv,values.flood,values.flooding_timeout,values.flooding_interval,values.v4,values.v6))
|
file_print(">>>>>>> Timestamp 9: ", timeNow())
|
||||||
|
pr2 = multiprocessing.Process(target=Sniffer, args=(myfilter, values.interface, float(values.sniffer_timeout),q2,values.dns,values.show_ttl, values.dos_ttl,values.conflict, values.ttl,values.d4, values.d6, values.target_mac, values.auto_fake_responses,source_IPv6, source_IPv4, target_mac1, target_mac2,source_mac,values.hlimit,values.workstation,values.printer,values.googlecast,values.airtv,values.flood,values.flooding_timeout,values.flooding_interval,values.v4,values.v6))
|
||||||
pr2.daemon = True
|
pr2.daemon = True
|
||||||
pr2.start()
|
pr2.start()
|
||||||
time.sleep(1) #to make sure than sniffer has started before we proceed, otherwise you may miss some traffic
|
time.sleep(1) #to make sure than sniffer has started before we proceed, otherwise you may miss some traffic
|
||||||
|
file_print(">>>>>>> Timestamp 10: ", timeNow())
|
||||||
for r in results:
|
for r in results:
|
||||||
r2=r.split(" ")
|
r2=r.split(" ")
|
||||||
service=r2[7].strip('"')
|
service=r2[7].strip('"')
|
||||||
@@ -1044,10 +1048,12 @@ def main():
|
|||||||
elif values.service_scan:
|
elif values.service_scan:
|
||||||
targets=[]
|
targets=[]
|
||||||
q2 = multiprocessing.Queue()
|
q2 = multiprocessing.Queue()
|
||||||
|
file_print(">>>>>>> Timestamp 11: ", timeNow())
|
||||||
pr2 = multiprocessing.Process(target=Sniffer, args=(myfilter, values.interface, float(values.sniffer_timeout),q2,values.dns,values.show_ttl, values.dos_ttl,values.conflict, values.ttl,values.d4, values.d6, values.target_mac, values.auto_fake_responses,source_IPv6, source_IPv4, target_mac1, target_mac2,source_mac,values.hlimit,values.workstation,values.printer,values.googlecast,values.airtv,values.flood,values.flooding_timeout,values.flooding_interval,values.v4,values.v6))
|
pr2 = multiprocessing.Process(target=Sniffer, args=(myfilter, values.interface, float(values.sniffer_timeout),q2,values.dns,values.show_ttl, values.dos_ttl,values.conflict, values.ttl,values.d4, values.d6, values.target_mac, values.auto_fake_responses,source_IPv6, source_IPv4, target_mac1, target_mac2,source_mac,values.hlimit,values.workstation,values.printer,values.googlecast,values.airtv,values.flood,values.flooding_timeout,values.flooding_interval,values.v4,values.v6))
|
||||||
pr2.daemon = True
|
pr2.daemon = True
|
||||||
pr2.start()
|
pr2.start()
|
||||||
time.sleep(1) #to make sure than sniffer has started before we proceed, otherwise you may miss some traffic
|
time.sleep(1) #to make sure than sniffer has started before we proceed, otherwise you may miss some traffic
|
||||||
|
file_print(">>>>>>> Timestamp 12: ", timeNow())
|
||||||
for r in results:
|
for r in results:
|
||||||
r2=r.split(" ")
|
r2=r.split(" ")
|
||||||
service=r2[7].strip('"')[:-1]
|
service=r2[7].strip('"')[:-1]
|
||||||
@@ -1064,10 +1070,12 @@ def main():
|
|||||||
results.append(q2.get())
|
results.append(q2.get())
|
||||||
targets2=[]
|
targets2=[]
|
||||||
q3 = multiprocessing.Queue()
|
q3 = multiprocessing.Queue()
|
||||||
|
file_print(">>>>>>> Timestamp 13: ", timeNow())
|
||||||
pr3 = multiprocessing.Process(target=Sniffer, args=(myfilter, values.interface, float(values.sniffer_timeout),q3,values.dns,values.show_ttl, values.dos_ttl, values.conflict,values.ttl,values.d4, values.d6, values.target_mac, values.auto_fake_responses,source_IPv6, source_IPv4, target_mac1, target_mac2,source_mac,values.hlimit,values.workstation,values.printer,values.googlecast,values.airtv,values.flood,values.flooding_timeout,values.flooding_interval,values.v4,values.v6))
|
pr3 = multiprocessing.Process(target=Sniffer, args=(myfilter, values.interface, float(values.sniffer_timeout),q3,values.dns,values.show_ttl, values.dos_ttl, values.conflict,values.ttl,values.d4, values.d6, values.target_mac, values.auto_fake_responses,source_IPv6, source_IPv4, target_mac1, target_mac2,source_mac,values.hlimit,values.workstation,values.printer,values.googlecast,values.airtv,values.flood,values.flooding_timeout,values.flooding_interval,values.v4,values.v6))
|
||||||
pr3.daemon = True
|
pr3.daemon = True
|
||||||
pr3.start()
|
pr3.start()
|
||||||
time.sleep(1) #to make sure than sniffer has started before we proceed, otherwise you may miss some traffic
|
time.sleep(1) #to make sure than sniffer has started before we proceed, otherwise you may miss some traffic
|
||||||
|
file_print(">>>>>>> Timestamp 14: ", timeNow())
|
||||||
for r in results:
|
for r in results:
|
||||||
r2=r.split(" ")
|
r2=r.split(" ")
|
||||||
service=r2[4]
|
service=r2[4]
|
||||||
|
|||||||
Reference in New Issue
Block a user