Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swen90006-a2-2019
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Toby Murray
swen90006-a2-2019
Commits
849c5bb2
Commit
849c5bb2
authored
Oct 2, 2019
by
João Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Update Fuzzer.java
parent
21e5d19c
No related branches found
No related tags found
2 merge requests
!7
Muz mutation
,
!5
Matt branch
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
fuzzer/Fuzzer.java
+28
-3
28 additions, 3 deletions
fuzzer/Fuzzer.java
with
28 additions
and
3 deletions
fuzzer/Fuzzer.java
+
28
−
3
View file @
849c5bb2
...
@@ -12,6 +12,31 @@ public class Fuzzer {
...
@@ -12,6 +12,31 @@ public class Fuzzer {
System
.
out
.
println
(
Instruction
.
getBNF
());
System
.
out
.
println
(
Instruction
.
getBNF
());
FileOutputStream
out
=
null
;
FileOutputStream
out
=
null
;
PrintWriter
pw
=
null
;
PrintWriter
pw
=
null
;
String
commands_to_mutate
[]
=
{
"list"
,
"rem http:google.com"
,
"put 5tokens 1 2 3 4"
,
"put google.com user pass\nput google.com user passs"
,
"put http://google.com user pass\nput http://google.com username pass"
,
"rem "
+
(
new
String
(
new
char
[
3
]).
replace
(
"\0"
,
"a"
)),
"rem "
+
(
new
String
(
new
char
[
1022
-
4
]).
replace
(
"\0"
,
"a"
))
+
"\nrem "
+
(
new
String
(
new
char
[
1023
-
4
]).
replace
(
"\0"
,
"a"
))
+
"\nrem "
+
(
new
String
(
new
char
[
1024
-
4
]).
replace
(
"\0"
,
"a"
))
+
"\nrem "
+
(
new
String
(
new
char
[
1025
-
4
]).
replace
(
"\0"
,
"a"
)),
"save password filename"
,
"\n"
,
"-"
,
"put test.com user pass\nlist"
,
"put test.com user pass\nrem test.com"
,
"put atest.com user pass\nput btest.com user pass\nput ctest.com user pass\nget btest.com\nget atest.com\nget ctest.com\nget none.com"
,
(
new
String
(
new
char
[
1024
]).
replace
(
"\0"
,
"list\n"
))
+
"\n"
,
(
new
String
(
new
char
[
1025
]).
replace
(
"\0"
,
"list\n"
)),
"put matt user"
,
"get 1 2"
,
"rem 1 2"
,
"list 2"
,
"save 1 2 3"
};
try
{
try
{
out
=
new
FileOutputStream
(
OUTPUT_FILE
);
out
=
new
FileOutputStream
(
OUTPUT_FILE
);
pw
=
new
PrintWriter
(
out
);
pw
=
new
PrintWriter
(
out
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment