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
e6fa9971
Commit
e6fa9971
authored
Jan 02, 2025
by
文周繁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Change program test parameters to user input
parent
0bc309c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
README.md
README.md
+4
-2
asan.py
asan.py
+1
-1
valgrind.py
valgrind.py
+1
-1
No files found.
README.md
View file @
e6fa9971
...
@@ -13,7 +13,8 @@ python2.7
...
@@ -13,7 +13,8 @@ python2.7
# 第三个参数用于存储vargrind检测后疑似漏洞的seeds文件夹目录
# 第三个参数用于存储vargrind检测后疑似漏洞的seeds文件夹目录
# 第四个参数为标准输出文件路径,用于存储标准输入信息
# 第四个参数为标准输出文件路径,用于存储标准输入信息
# 第五个参数为错误信息文件路径,用于存储错误信息
# 第五个参数为错误信息文件路径,用于存储错误信息
# 例:python valgrind.py /path/to/jhead /path/to/crash-seeds /path/to/bug-seeds /path/to/stdout /path/to/stderr
# 第六个参数为程序模糊测试参数,例如:@@
# 例:python valgrind.py /path/to/jhead /path/to/crash-seeds /path/to/bug-seeds /path/to/stdout /path/to/stderr @@
```
```
# asan.py用法
# asan.py用法
...
@@ -25,6 +26,7 @@ python2.7
...
@@ -25,6 +26,7 @@ python2.7
# 第三个参数用于存储asan检测后疑似漏洞的seeds文件夹目录
# 第三个参数用于存储asan检测后疑似漏洞的seeds文件夹目录
# 第四个参数为标准输出文件路径,用于存储标准输入信息
# 第四个参数为标准输出文件路径,用于存储标准输入信息
# 第五个参数为错误信息文件路径,用于存储错误信息
# 第五个参数为错误信息文件路径,用于存储错误信息
# 例:python asan.py /path/to/jhead /path/to/crash-seeds /path/to/bug-seeds /path/to/stdout /path/to/stderr
# 第六个参数为程序模糊测试参数,例如:@@
# 例:python asan.py /path/to/jhead /path/to/crash-seeds /path/to/bug-seeds /path/to/stdout /path/to/stderr @@
```
```
asan.py
View file @
e6fa9971
...
@@ -63,11 +63,11 @@ def generation_command(target, parameter, paths, output_seeds_dirname, stdout_ou
...
@@ -63,11 +63,11 @@ def generation_command(target, parameter, paths, output_seeds_dirname, stdout_ou
def
main
(
argv
):
def
main
(
argv
):
target
=
argv
[
0
]
target
=
argv
[
0
]
cmd
=
"@@"
input_seeds_dirname
=
argv
[
1
]
# input_seeds dir
input_seeds_dirname
=
argv
[
1
]
# input_seeds dir
output_seeds_dirname
=
argv
[
2
]
# output_seeds dir
output_seeds_dirname
=
argv
[
2
]
# output_seeds dir
stdout_outputfile
=
argv
[
3
]
stdout_outputfile
=
argv
[
3
]
stderr_outputfile
=
argv
[
4
]
stderr_outputfile
=
argv
[
4
]
cmd
=
argv
[
5
]
print
(
"Searching files
\n
"
)
print
(
"Searching files
\n
"
)
paths
=
search_file
(
input_seeds_dirname
)
paths
=
search_file
(
input_seeds_dirname
)
generation_command
(
target
,
cmd
,
paths
,
output_seeds_dirname
,
stdout_outputfile
,
stderr_outputfile
)
generation_command
(
target
,
cmd
,
paths
,
output_seeds_dirname
,
stdout_outputfile
,
stderr_outputfile
)
...
...
valgrind.py
View file @
e6fa9971
...
@@ -74,11 +74,11 @@ def generation_command(target, parameter, paths, output_seeds_dirname, stdout_ou
...
@@ -74,11 +74,11 @@ def generation_command(target, parameter, paths, output_seeds_dirname, stdout_ou
def
main
(
argv
):
def
main
(
argv
):
target
=
argv
[
0
]
# target program
target
=
argv
[
0
]
# target program
cmd
=
"@@"
input_seeds_dirname
=
argv
[
1
]
# input_seeds dir
input_seeds_dirname
=
argv
[
1
]
# input_seeds dir
output_seeds_dirname
=
argv
[
2
]
# output_seeds dir
output_seeds_dirname
=
argv
[
2
]
# output_seeds dir
stdout_outputfile
=
argv
[
3
]
stdout_outputfile
=
argv
[
3
]
stderr_outputfile
=
argv
[
4
]
stderr_outputfile
=
argv
[
4
]
cmd
=
argv
[
5
]
print
(
"Searching files
\n
"
)
print
(
"Searching files
\n
"
)
paths
=
search_file
(
input_seeds_dirname
)
paths
=
search_file
(
input_seeds_dirname
)
generation_command
(
target
,
cmd
,
paths
,
output_seeds_dirname
,
stdout_outputfile
,
stderr_outputfile
)
generation_command
(
target
,
cmd
,
paths
,
output_seeds_dirname
,
stdout_outputfile
,
stderr_outputfile
)
...
...
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