This document provides a quick overview of the guts of American Fuzzy Lop. See README for the general instruction manual; and for a discussion of motivations and design goals behind AFL, see historical_notes.txt.
- Design statement
var saveAs=saveAs||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},o=t.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in o,i=function(n){var o=t.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(o)},a=e.webkitRequestFileSystem,c=e.requestFileSystem||a||e.mozRequestFileSystem,s=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},u="application/octet-stream",f=0,d=500,l=function(t){var o=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?o():setTimeout(o,d)},v=function(e,t,n){t=[].concat(t);for(var o=t.length;o--;){var r=e["on"+t[o]];if("function"==typeof r)try{r.call(e,n||e)}catch(i){s(i)}}},p=function(t,s){var d,p,w,y=this,m=t.type,S=!1,h=function(){v(y,"writestart progress write writeen |
// The Grid component allows an element to be located | |
// on a grid of tiles | |
Crafty.c('Grid', { | |
init: function() { | |
this.attr({ | |
w: Game.map_grid.tile.width, | |
h: Game.map_grid.tile.height | |
}); | |
}, |
public class ArrayListString{ | |
private String[] arr; | |
private int capacity; | |
private int size; | |
public ArrayListString() { | |
arr = new String[10]; | |
capacity = 10; | |
size = 0; |
import org.eclipse.jetty.server.Server; | |
public static HTTPServer startUpAnHTTPServer(WebQueryInterface wqi, UserManager um) | |
{ | |
HTTPServer httpServer = new HTTPServer(); | |
if (HTTPServer.getUserManager() == null) | |
{ | |
userManager = um; | |
} | |
//Exploitable, this port can be accessed by anyone on the local network |
This document provides a quick overview of the guts of American Fuzzy Lop. See README for the general instruction manual; and for a discussion of motivations and design goals behind AFL, see historical_notes.txt.
Written and maintained by Michal Zalewski lcamtuf@google.com
Copyright 2013, 2014, 2015 Google Inc. All rights reserved. Released under terms and conditions of Apache License, Version 2.0.
For new versions and additional information, check out:
//The following is in snippet form. | |
//It shows 2 ways to upload files, the first is the cannonical way, if you have the image on disk | |
//the second is a way to upload it without having to write a modified image to disk (in this instance, a cropped image) | |
import org.apache.http.HttpEntity; | |
import org.apache.http.client.methods.CloseableHttpResponse; | |
import org.apache.http.client.methods.HttpPut; | |
import org.apache.http.entity.ContentType; | |
import org.apache.http.entity.mime.MultipartEntityBuilder; | |
import org.apache.http.impl.client.CloseableHttpClient; |
This is an example for Google I/O of the D3 visualization, with animation.
This example is live at http://bl.ocks.org/kjlubick/059355cdefeaf06d0f60e1cb2a8a4ddb
Slides from my talk are at https://docs.google.com/presentation/d/1puxW7PY2PQxOqUPyNzgBCLv_0NedlYgubtOVvqteYgk/edit#slide=id.p
#Hotstring EndChars `n `t | |
# Type ' then letter for lower case " then letter for uppercase | |
# The accented letter will appear after you hit tab, return or space. | |
::'a:: | |
Send, {U+00E1} | |
Return | |
::"A:: | |
Send, {U+00C1} |
./afl-fuzz [ options ] -- /path/to/fuzzed_app [ ... ] | |
Required parameters: | |
-i dir - input directory with test cases | |
-o dir - output directory for fuzzer findings | |
Execution control settings: | |
-f file - location read by the fuzzed program (stdin) |