Skip to content
Snippets Groups Projects
Commit 849c5bb2 authored by João Pereira's avatar João Pereira
Browse files

Update Fuzzer.java

parent 21e5d19c
No related branches found
No related tags found
2 merge requests!7Muz mutation,!5Matt branch
...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment