-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
1,763 additions
and
524 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,8 @@ | |
# skipfish - Makefile | ||
# ------------------- | ||
# | ||
# Author: Michal Zalewski <[email protected]> | ||
# Author: Michal Zalewski <[email protected]>, | ||
# Niels Heinen <[email protected]> | ||
# | ||
# Copyright 2009, 2010, 2011 by Google Inc. All Rights Reserved. | ||
# | ||
|
@@ -20,21 +21,22 @@ | |
# | ||
|
||
PROGNAME = skipfish | ||
VERSION = 2.09b | ||
VERSION = 2.10b | ||
|
||
SRCDIR = src | ||
SFILES = http_client.c database.c crawler.c analysis.c report.c \ | ||
checks.c signatures.c auth.c | ||
checks.c signatures.c auth.c options.c | ||
IFILES = alloc-inl.h string-inl.h debug.h types.h http_client.h \ | ||
database.h crawler.h analysis.h config.h report.h \ | ||
checks.h signatures.h auth.h | ||
checks.h signatures.h auth.h options.h | ||
|
||
OBJFILES = $(patsubst %,$(SRCDIR)/%,$(SFILES)) | ||
INCFILES = $(patsubst %,$(SRCDIR)/%,$(IFILES)) | ||
|
||
CFLAGS_GEN = -Wall -funsigned-char -g -ggdb -I/usr/local/include/ \ | ||
-I/opt/local/include/ $(CFLAGS) -DVERSION=\"$(VERSION)\" | ||
CFLAGS_DBG = -DLOG_STDERR=1 -DDEBUG_ALLOCATOR=1 $(CFLAGS_GEN) | ||
CFLAGS_DBG = -DLOG_STDERR=1 -DDEBUG_ALLOCATOR=1 \ | ||
$(CFLAGS_GEN) | ||
CFLAGS_OPT = -O3 -Wno-format $(CFLAGS_GEN) | ||
|
||
LDFLAGS += -L/usr/local/lib/ -L/opt/local/lib | ||
|
@@ -55,6 +57,12 @@ $(PROGNAME): $(SRCDIR)/$(PROGNAME).c $(OBJFILES) $(INCFILES) | |
debug: $(SRCDIR)/$(PROGNAME).c $(OBJFILES) $(INCFILES) | ||
$(CC) $(LDFLAGS) $(SRCDIR)/$(PROGNAME).c -o $(PROGNAME) \ | ||
$(CFLAGS_DBG) $(OBJFILES) $(LIBS) | ||
@echo | ||
@echo "The debug build prints runtime information to stderr. You" | ||
@echo "probably want to redirect this output to a file. like:" | ||
@echo | ||
@echo " $ ./skipfish [.option.] 2> debug.log" | ||
@echo | ||
|
||
clean: | ||
rm -f $(PROGNAME) *.exe *.o *~ a.out core core.[1-9][0-9]* *.stackdump \ | ||
|
@@ -66,6 +74,7 @@ same_test: $(SRCDIR)/same_test.c $(OBJFILES) $(INCFILES) | |
$(LIBS) | ||
|
||
publish: clean | ||
cd ..; rm -rf skipfish-$(VERSION); cp -pr skipfish skipfish-$(VERSION); \ | ||
tar cfvz ~/www/skipfish.tgz skipfish-$(VERSION) | ||
cd ..; rm -rf skipfish-$(VERSION); \ | ||
cp -pr skipfish-release skipfish-$(VERSION); \ | ||
tar cfvz ~/www/skipfish.tgz skipfish-$(VERSION); \ | ||
chmod 644 ~/www/skipfish.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
|
||
###################################### | ||
## Reporting options | ||
################################## | ||
|
||
# Output to this directory | ||
output = CHANGEME | ||
|
||
# Toggle mixed content reporting | ||
log-mixed-content = false | ||
|
||
# Toggle logging of all external URLs | ||
log-external-urls = false | ||
|
||
# Enable extra cache related logging | ||
log-cache-mismatches = false | ||
|
||
# Turn off console statistics reporting | ||
#quiet = false | ||
|
||
# Increase verbosity of runtime reporting | ||
#verbose = false | ||
|
||
###################################### | ||
## Crawler user agent options | ||
################################## | ||
|
||
# Pretend that 'domain' resolves to 'IP' | ||
#host = domain=IP | ||
|
||
# Specify header values that will be send with every request | ||
#header = headername=value | ||
#header = X-Scanner=skipfish | ||
|
||
# Specify which one of the pre-defined user agents to use (i|p|f). | ||
user-agent = i | ||
|
||
# Set cookie value and send it with every request | ||
#cookie = name1=value1 | ||
#cookie = name2=value3 | ||
|
||
# Reject any new cookies | ||
reject-cookies = false | ||
|
||
###################################### | ||
## Authentication options | ||
################################## | ||
|
||
# Specify the location of the login form | ||
#auth-form = http://example.org/login.php | ||
|
||
# Specify the username and password that you want to authenticate | ||
# with. It's advised to use throw away (test) accounts. | ||
#auth-user = myuser | ||
#auth-pass = mypass | ||
|
||
# Specify the credential field names when not detected by skipfish. | ||
#auth-user-field = user-field-name | ||
#auth-pass-field = pass-field-name | ||
|
||
# The URL to test is the scan is authenticated. | ||
#auth-verify-url = http://example.org/show-profile.php | ||
|
||
# In some cases, you might have to specify the location to which the | ||
# form data has to be submitted. | ||
#auth-form-target | ||
|
||
# Specify credentials for basic HTTP authentication | ||
#auth = user:pass | ||
|
||
|
||
###################################### | ||
## Crawler scope / depth options | ||
################################## | ||
|
||
# Maximum crawl tree depth | ||
max-crawl-depth = 16 | ||
|
||
# Maximum children to index per node | ||
max-crawl-child = 512 | ||
|
||
# Maximum descendants to index per branch | ||
max-crawl-descendants = 8192 | ||
|
||
# Max total number of requests to send | ||
max-request-total = 100000000 | ||
|
||
# Max requests per second | ||
#max-request-rate = 200 | ||
|
||
# Node and link crawl probability | ||
crawl-probability = 100 | ||
|
||
# Repeat probabilistic scan with given seed | ||
#seed = 0xXXXXXX | ||
|
||
# Only follow URLs matching 'string' | ||
#include-string = /want/ | ||
|
||
# Exclude URLs matching 'string' | ||
#exclude-string = /want-not/ | ||
|
||
# Crawl cross-site links to another domain | ||
#include-domain = scan.also.example.org | ||
|
||
# Trust, but do not crawl, another domain | ||
#trust-domain = .google-analytics.com | ||
|
||
# Do not parse HTML, etc, to find new links | ||
#no-html-parsing = false | ||
|
||
# Do not descend into 5xx locations | ||
skip-error-pages = false | ||
|
||
# Add new form auto-fill rule | ||
#form-value = field=value | ||
|
||
###################################### | ||
## Dictionary management | ||
################################## | ||
|
||
# The read-only wordlist that is used for bruteforcing | ||
wordlist = dictionaries/medium.wl | ||
|
||
# The read-write wordlist and where learned keywords will be written | ||
# for future scans. | ||
#rw-wordlist = my-wordlist.wl | ||
|
||
# Disable extension fuzzing | ||
no-extension-brute = false | ||
|
||
# Disable keyword learning | ||
no-keyword-learning = false | ||
|
||
###################################### | ||
## Performance options | ||
################################## | ||
|
||
# Max simultaneous TCP connections, global | ||
max-connections = 40 | ||
|
||
# Max simultaneous connections, per target IP | ||
max-host-connections = 10 | ||
|
||
# Max number of consecutive HTTP errors | ||
max-failed-requests = 100 | ||
|
||
# Total request response timeout | ||
request-timeout = 20 | ||
|
||
# Individual network I/O timeout | ||
network-timeout = 10 | ||
|
||
# Timeout on idle HTTP connections | ||
idle-timeout = 10 | ||
|
||
# Response size limit in bytes | ||
response-size = 400000 | ||
|
||
# Do not keep binary responses for reporting | ||
discard-binary = true | ||
|
||
# Flush request / response data immediately to disk | ||
flush-to-disk = false | ||
|
||
# Stop scanning after the given duration h:m:s | ||
#scan-timeout = h:m:s | ||
|
||
###################################### | ||
## Detection / inject options | ||
################################## | ||
|
||
# Specify the signatures file location. To disable signatures, specify /dev/null. | ||
signatures = signatures/signatures.conf | ||
|
||
# Enable or disable specific injection tests | ||
#checks-toggle | ||
|
||
# Disable all injection tests which means the scan will focus on crawling, | ||
# bruteforcing and passively detect security issues via signatures. | ||
no-injection-tests = false | ||
|
||
# Ignore this parameter in the scan | ||
#skip-parameter = search | ||
|
||
# Do not submit forms | ||
no-form-submits = false | ||
|
Oops, something went wrong.