-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
43 lines (35 loc) · 1.01 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"""
@Project :pack
@File :test.py
@IDE :PyCharm
@Author :zhizhuo
@Date :2024/3/1 13:16
"""
from poc_tool.log import log, LOGGER, LoggingLevel
from poc_tool import tools, hex_dump
def log_test():
LOGGER.setLevel(LoggingLevel.DEBUG)
log.info("zhizhuo")
log.success("zhizhuo")
log.debug("zhizhuo")
log.warning("zhizhuo")
log.error("zhizhuo")
def hex_test():
hex_data = hex_dump(file_path="../../poc编写规则.zip", lines=10)
print(hex_data)
def main():
print(tools.get_random_str_num(10))
print(tools.get_random_ua())
log_test()
hex_test()
url = "http://127.0.0.1:80/"
url = "http://2408:823c:4b8d:424:20c:29ff:fecd:205b:8080"
url = "http://2408:823c:4b8d:424:20c:29ff:fecd:205b"
# url = "http://2408:823c:4b8d:424:20c:29ff:fecd:205b:8080/123"
# url = "http://127.0.0.1:9090/ouhjkh"
# url = "http://www.baidu.com:443"
# url = "127.0.0.1"
res = tools.get_url_format(url=url)
print(res)
if __name__ == '__main__':
main()