Commit f43c03a2 authored by Raphaël Hertzog's avatar Raphaël Hertzog

Imported Upstream version 2.22

parent 46cf839b
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for dirb 2.21.
# Generated by GNU Autoconf 2.69 for dirb 2.22.
#
# Report bugs to <darkraver@open-labs.org>.
#
......@@ -579,8 +579,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='dirb'
PACKAGE_TARNAME='dirb'
PACKAGE_VERSION='2.21'
PACKAGE_STRING='dirb 2.21'
PACKAGE_VERSION='2.22'
PACKAGE_STRING='dirb 2.22'
PACKAGE_BUGREPORT='darkraver@open-labs.org'
PACKAGE_URL=''
......@@ -1217,7 +1217,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures dirb 2.21 to adapt to many kinds of systems.
\`configure' configures dirb 2.22 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
......@@ -1283,7 +1283,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of dirb 2.21:";;
short | recursive ) echo "Configuration of dirb 2.22:";;
esac
cat <<\_ACEOF
......@@ -1369,7 +1369,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
dirb configure 2.21
dirb configure 2.22
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
......@@ -1470,7 +1470,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by dirb $as_me 2.21, which was
It was created by dirb $as_me 2.22, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
......@@ -2137,7 +2137,7 @@ fi
# Define the identity of the package.
PACKAGE=dirb
VERSION=2.21
VERSION=2.22
cat >>confdefs.h <<_ACEOF
......@@ -3858,7 +3858,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by dirb $as_me 2.21, which was
This file was extended by dirb $as_me 2.22, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
......@@ -3924,7 +3924,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
dirb config.status 2.21
dirb config.status 2.22
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
......
......@@ -2,7 +2,7 @@ dnl ++ Starting
dnl +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
AC_PREREQ(2.50)
AC_INIT(dirb,2.21,darkraver@open-labs.org)
AC_INIT(dirb,2.22,darkraver@open-labs.org)
AC_CONFIG_SRCDIR(src/dirb.c)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(config.h)
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
DIRB CHANGELOG
==============
*2.2.1 (24/04/2013)
*2.2.2 (05/04/2014)
------
- FEATURE: Añadida wordlist de Jersey
- FEATURE: Añadido mensaje de finalizacion 'END_TIME', contribucion de hyrumm
2.2.1 (24/04/2013)
------
- FEATURE: Añadida hotkey 'r' que muestra las pruebas restantes
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -3,6 +3,7 @@ DIRB TODO LIST
++ Alta prioridad:
- Corregir permisos de ficheros y directorios
- Añadir funcion test_dir()
++ Prioridad media:
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -122,7 +122,6 @@ struct words *crea_wordlist_fich(char *fichero) {
char cbuffer[STRING_SIZE];
struct words *ecurrent;
struct words *ebase;
struct words *efinal;
// Inicializamos
......@@ -175,8 +174,6 @@ struct words *crea_wordlist_fich(char *fichero) {
ecurrent=ecurrent->siguiente;
}
efinal=ecurrent;
fclose(file);
return ebase;
......@@ -194,7 +191,6 @@ struct words *crea_extslist(char *lista) {
char cbuffer[STRING_SIZE];
struct words *ecurrent;
struct words *ebase;
struct words *efinal;
char *apunt;
......@@ -239,8 +235,6 @@ struct words *crea_extslist(char *lista) {
ecurrent=ecurrent->siguiente;
}
efinal=ecurrent;
return ebase;
}
......
......@@ -44,7 +44,6 @@ int main(int argc, char **argv) {
curl=curl_easy_init();
// Recepcion de parametros
if(argc<2) {
......@@ -67,7 +66,6 @@ int main(int argc, char **argv) {
optind+=2;
}
while((c = getopt(argc,argv,"a:c:d:fgh:H:ilm:M:n:N:o:p:P:rRsSvwx:X:u:tz:"))!= -1){
switch(c) {
case 'a':
......@@ -172,7 +170,6 @@ int main(int argc, char **argv) {
}
}
// Limpia el input
limpia_url(options.url_inicial);
......@@ -183,7 +180,6 @@ int main(int argc, char **argv) {
limpia_url(options.mfile);
// Chequeos iniciales
get_options();
......@@ -192,12 +188,10 @@ int main(int argc, char **argv) {
IMPRIME("\n-----------------\n\n");
// Creamos la lista de palabras
palabras=crea_wordlist(options.mfile);
// Abrimos el fichero de mutations y creamos la lista
/*
......@@ -209,12 +203,10 @@ int main(int argc, char **argv) {
}
*/
// Lanzamos el bucle de descarga
lanza_ataque(options.url_inicial, palabras);
// Finalizamos
cierre();
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -87,7 +87,7 @@ retry:
if(options.verify_ssl==0) {
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_easy_setopt(curl, CURLOPT_SSLVERSION, 3);
//curl_easy_setopt(curl, CURLOPT_SSLVERSION, 3);
}
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -20,7 +20,6 @@ void get_options(void) {
tm = time(NULL);
ptr = localtime(&tm);
// -o
if(options.saveoutput==1) {
......@@ -41,70 +40,60 @@ void get_options(void) {
IMPRIME("URL_BASE: %s\n", options.url_inicial);
IMPRIME("WORDLIST_FILES: %s\n", options.mfile);
// -a
if(options.use_agent==1) {
IMPRIME("USER_AGENT: %s\n", options.agente);
}
// -c
if(options.use_cookie==1) {
IMPRIME("COOKIE: %s\n", options.cookie);
}
// -d
if(options.debuging) {
IMPRIME("DEBUG_LEVEL: %d\n", options.debuging);
}
// -f
if(options.finetunning==1) {
IMPRIME("OPTION: Fine tunning of NOT_FOUND detection\n");
}
// -g
if(options.save_found==1) {
IMPRIME("OPTION: Saving Found URLs to disk\n");
}
// -h
if(options.use_vhost==1) {
IMPRIME("VHOST: %s\n", options.vhost);
}
// -H
if(options.add_header) {
IMPRIME("ADDED_HEADERS: \n--\n%s\n--\n", options.header_string);
}
// -i
if(options.insensitive==1) {
IMPRIME("OPTION: Using Case-Insensitive Searches\n");
}
// -l
if(options.print_location==1) {
IMPRIME("OPTION: Printing LOCATION header\n");
}
// -m
if(options.mutations_file==1) {
......@@ -122,7 +111,6 @@ void get_options(void) {
IMPRIME("\n");
}
// -M
if(options.mutations_list==1) {
......@@ -140,84 +128,72 @@ void get_options(void) {
IMPRIME("\n");
}
// -N
if(options.ignore_nec) {
IMPRIME("OPTION: Ignoring NOT_FOUND code -> %d\n", options.ignore_nec);
}
// -p
if(options.use_proxy==1) {
IMPRIME("PROXY: %s\n", options.proxy);
}
// -P
if(options.use_proxypass==1) {
IMPRIME("PROXY AUTHORIZATION: %s\n", options.proxypass_string);
}
// -r
if(options.dont_recurse==1) {
IMPRIME("OPTION: Not Recursive\n");
}
// -R
if(options.interactive==1) {
IMPRIME("OPTION: Interactive Recursion\n");
}
// -s
if(options.verify_ssl==1) {
IMPRIME("OPTION: Verifying SSL certificate\n");
}
// -S
if(options.silent_mode==1) {
IMPRIME("OPTION: Silent Mode\n");
}
// -t
if(options.lasting_bar==0) {
IMPRIME("OPTION: NOT forcing an ending '/' on URLs\n");
}
// -u
if(options.use_pass==1) {
IMPRIME("AUTHORIZATION: %s\n", options.pass_string);
}
// -v
if(options.nothide==1) {
IMPRIME("OPTION: Show Not Existant Pages\n");
}
// -w
if(options.exitonwarn==0) {
IMPRIME("OPTION: Not Stoping on warning messages\n");
}
// -x
if(options.extensions_file==1) {
......@@ -237,7 +213,6 @@ void get_options(void) {
IMPRIME(" [NUM = %d]\n", exts_num);
}
// -X
if(options.extensions_list==1) {
......@@ -257,7 +232,6 @@ void get_options(void) {
IMPRIME(" [NUM = %d]\n", exts_num);
}
// -z
if(options.speed) {
......
......@@ -158,6 +158,9 @@ void resume(void) {
wordlist_final=wordlist_current;
wordlist_current=wordlist_base;
while(wordlist_current->siguiente!=0 && strncmp(wordlist_current->word, options.current_word, STRING_SIZE-1)!=0) { wordlist_current=wordlist_current->siguiente; }
// Avanzamos la wordlist en 1
wordlist_current=wordlist_current->siguiente;
// Relanzamos el scan
......
......@@ -301,10 +301,16 @@ char kbhit(void){
*/
void cierre(void) {
struct tm *ptr;
time_t tm;
tm = time(NULL);
ptr = localtime(&tm);
if(!options.silent_mode) printf(" \r");
IMPRIME("\n-----------------\n");
IMPRIME("END_TIME: %s", asctime(ptr));
IMPRIME("DOWNLOADED: %d - FOUND: %d\n", descargadas, encontradas);
if(options.saveoutput) fclose(outfile);
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
This diff is collapsed.
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -918,9 +918,11 @@ will
win
windows
word
wordpress
work
workplace
workshop
wp
wstats
wusage
www
......
......@@ -92,7 +92,9 @@ coleccion
colecciones
comercio
comercios
componente
componentes
componer
compra
compras
comun
......@@ -390,6 +392,8 @@ sesion
sesiones
sistemas
sitio
solicitar
solicitud
subida
subir
sumario
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
This diff is collapsed.
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
invoker/
invoker/EJBInvokerServlet
invoker/JMXInvokerServlet
jbossmq-httpil/
jbossws/services
......
JAXBElement
SimpleServlet/resources/start
XmlRootElement
XmlType
aircrafts
application.wadl
assembly.xml
atom/application.wadl
atom/collection
atompub-contacts-client
atompub-contacts-models
atompub-contacts-server
bookmark
bookmark-em
bookmarks
bookstore
changes
changes/latest
collection
contacts
containers
count
data
ejb
emptyArrayResource
entity-provider
extended-wadl-webapp
extended-wadl-webapp/application.wadl
flights
form
form/colours
generate-wadl
groovy
helloworld
helloworld-webapp
helloworld-webapp/helloworld
https-clientserver-grizzly
https-server-glassfish
httpsBasicAuth-webapp/helloworld
item
item/content
item/content/1
jacksonjsonprovider
jacksonjsonprovider/application.wadl
jacksonjsonprovider/emptyArrayResource
jacksonjsonprovider/nonJAXBResource
jaxb
jaxb/JAXBElement
jaxb/XmlRootElement
jaxb/XmlType
jaxb/array/XmlRootElement
jaxb/array/XmlType
jaxb/collection/XmlRootElement
jaxb/collection/XmlType
jcdi-beans-webapp
jcdi-beans-webapp/ejb/stateless
jcdi-beans-webapp/jcdibean/dependent/per-request
jcdi-beans-webapp/jcdibean/dependent/singleton
jcdi-beans-webapp/jcdibean/per-request
jcdi-beans-webapp/jcdibean/singleton
jcdibean
jersey-autowired
jersey-ejb
jersey-ejb/app/messages
jersey-ejb/app/messages/1
jmaki-backend
json-from-jaxb
jsonfromjaxb/aircrafts
jsonfromjaxb/application.wadl
jsonfromjaxb/flights
jsonp
jsonp/changes
managed-beans-webapp
mandel
mandelbrot
markup
nonJAXBResource
occ/item
occ/item/content/0
optimistic-concurrency
per-request
pom.xml
printers
printers/ids/1
printers/jMakiTable
printers/jMakiTree
printers/list
properties
resources/application.wadl
resources/form
resources/form/colours
resources/start
scala-helloworld-webapp
service
simple-atom-server
simple-console
simple-servlet
singleton
sparklines
sparklines/discrete
spring-annotations
spring-aop
spring-aop/subresource
spring-autowired
spring-resourced
spring/jersey-autowired
spring/spring-aop
spring/spring-aop/subresource
spring/spring-autowired
spring/spring-resourced
start
stateless
storage-service
storage/containers
storage/containers/quotes
time
users
users/
users/1
users/1/bookmarks
users/1/bookmarks/1
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
......@@ -41,11 +41,15 @@ JSP
NFIntro.htm
OA_HTML/
OA_HTML/AppsLocalLogin.jsp
OA_HTML/PTB/mwa_readme.htm
OA_HTML/oam/weboam.log
OA_JAVA/
OHW
OnlineOrders_html/
OnlineOrders_html/login.jsp
Oracle
OracleASjms
README
RedirectServlet
RequestHeaderExample
RequestInfoExample
......@@ -62,12 +66,12 @@ ToJSPServlet
ViewSrc
WEB-INF/config.xml
WebCacheDemo.html
[
]
XSQLConfig.xml
_pages
_pages/
_pages/_demo/
_pages/_demo/_ojspext/_events/_index.java
_pages/_demo/_sql/
_pages/_demo/_sql/_pages/
_pages/_webapp/_admin/_showjavartdetails.java
_pages/_webapp/_admin/_showpooldetails.java
......@@ -76,6 +80,7 @@ admin/
admin_/
admin_ejb
adminoc4j
apex/
aplogon.html
appdet.html
aqserv/servlet
......@@ -222,6 +227,7 @@ demo/xml/helloxml/index.html
demo/xml/index.html
demo/xml/xmlquery/XMLQuery.jsp
demo/xml/xmlquery/index.html
demo/xml/xmlquery/viewsrc/XMLQuery.jsp.txt
dev60cgi/f60cgi
dev60cgi/ifcgi60.exe
dev60cgi/rwcgi60
......@@ -319,6 +325,7 @@ inventory/
isqlplus
isqlplus/
j2ee
j2ee/
j2ee/OC4J_Demos