xbase-util 0.6.4__tar.gz → 0.6.5__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {xbase_util-0.6.4 → xbase_util-0.6.5}/PKG-INFO +1 -1
- {xbase_util-0.6.4 → xbase_util-0.6.5}/setup.py +1 -1
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/packet_util.py +2 -2
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util.egg-info/PKG-INFO +1 -1
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util.egg-info/SOURCES.txt +0 -1
- xbase_util-0.6.4/test/test.py +0 -9
- {xbase_util-0.6.4 → xbase_util-0.6.5}/README.md +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/setup.cfg +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/__init__.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/add_column_util.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/dangerous_util.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/db/__init__.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/db/bean/ConfigBean.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/db/bean/CurrentConfigBean.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/db/bean/FlowBean.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/db/bean/TaskTemplateBean.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/db/bean/__init__.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/db/dao/ConfigDao.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/db/dao/CurrentConfigDao.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/db/dao/FlowDao.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/db/dao/TaskTemplateDao.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/db/dao/__init__.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/db/initsqlite3.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/es_db_util.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/esreq.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/geo_util.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/handle_features_util.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/pcap_util.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/xbase_constant.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util/xbase_util.py +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util.egg-info/dependency_links.txt +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util.egg-info/not-zip-safe +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util.egg-info/top_level.txt +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util_assets/GeoLite2-City.mmdb +0 -0
- {xbase_util-0.6.4 → xbase_util-0.6.5}/xbase_util_assets/arkimeparse.js +0 -0
@@ -121,8 +121,8 @@ def get_detail_by_package(packets_from_pcap, publicField, use_regx):
|
|
121
121
|
"""
|
122
122
|
res_field = publicField.copy()
|
123
123
|
if use_regx:
|
124
|
-
req = packets_from_pcap['
|
125
|
-
res = packets_from_pcap['
|
124
|
+
req = packets_from_pcap['req_body']
|
125
|
+
res = packets_from_pcap['res_body']
|
126
126
|
else:
|
127
127
|
res = packets_from_pcap["response"]
|
128
128
|
req = packets_from_pcap["request"]
|
xbase_util-0.6.4/test/test.py
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
from scapy.utils import rdpcap
|
2
|
-
|
3
|
-
from xbase_util.packet_util import get_all_packets_by_reg, get_body
|
4
|
-
|
5
|
-
if __name__ == '__main__':
|
6
|
-
p = get_all_packets_by_reg(rdpcap("t1.pcap"))
|
7
|
-
for packet in p:
|
8
|
-
print( packet['req_text'])
|
9
|
-
print(get_body(packet,is_req=True))
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|