Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
unifuzz-validate
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
文周繁
unifuzz-validate
Commits
6a7d6f45
Commit
6a7d6f45
authored
Jul 25, 2025
by
文周繁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:将asan、valgrind验证脚本修改为python3版本
parent
834bfd08
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
README.md
README.md
+5
-5
asan.py
asan.py
+1
-0
valgrind.py
valgrind.py
+1
-0
No files found.
README.md
View file @
6a7d6f45
# 环境
```
sh
python
2.7
python
3
```
# valgrind.py用法
```
sh
# 在python
2.7
环境下执行valgrind.py,脚本共接收四个参数
# 在python
3
环境下执行valgrind.py,脚本共接收四个参数
# 第一个参数为可执行程序,也就是被测目标程序
# 第二个参数为产生crashs的种子目录
# 第三个参数用于存储vargrind检测后疑似漏洞的seeds文件夹目录
# 第四个参数为标准输出文件路径,用于存储标准输入信息
# 第五个参数为错误信息文件路径,用于存储错误信息
# 第六个参数为程序模糊测试参数,例如:@@
# 例:python valgrind.py /path/to/jhead /path/to/crash-seeds /path/to/bug-seeds /path/to/stdout /path/to/stderr @@
# 例:python
3
valgrind.py /path/to/jhead /path/to/crash-seeds /path/to/bug-seeds /path/to/stdout /path/to/stderr @@
```
# asan.py用法
```
sh
# 在python
2.7
环境下执行asan.py,脚本共接收四个参数
# 在python
3
环境下执行asan.py,脚本共接收四个参数
# 第一个参数为可执行程序,也就是被测目标程序
# 第二个参数为种子目录
# 第三个参数用于存储asan检测后疑似漏洞的seeds文件夹目录
# 第四个参数为标准输出文件路径,用于存储标准输入信息
# 第五个参数为错误信息文件路径,用于存储错误信息
# 第六个参数为程序模糊测试参数,例如:@@
# 例:python asan.py /path/to/jhead /path/to/crash-seeds /path/to/bug-seeds /path/to/stdout /path/to/stderr @@
# 例:python
3
asan.py /path/to/jhead /path/to/crash-seeds /path/to/bug-seeds /path/to/stdout /path/to/stderr @@
```
asan.py
View file @
6a7d6f45
...
...
@@ -29,6 +29,7 @@ def TIMEOUT_COMMAND(command, path, output_seeds_dirname, stdout, stderr):
if it doesn't normally exit within timeout seconds and return None"""
process
=
subprocess
.
Popen
(
command
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
shell
=
True
)
outs
,
errs
=
process
.
communicate
()
errs
=
str
(
errs
,
"utf-8"
,
errors
=
'ignore'
)
stdout
.
write
(
outs
)
is_search_0
=
False
search_by_count
=
0
...
...
valgrind.py
View file @
6a7d6f45
...
...
@@ -30,6 +30,7 @@ def TIMEOUT_COMMAND(command, path, output_seeds_dirname, stdout, stderr):
if it doesn't normally exit within timeout seconds and return None"""
process
=
subprocess
.
Popen
(
command
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
shell
=
True
)
outs
,
errs
=
process
.
communicate
()
errs
=
str
(
errs
,
"utf-8"
,
errors
=
'ignore'
)
stdout
.
write
(
outs
)
err_data
=
''
search_at_count
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment