GithubHelp home page GithubHelp logo

vk496 / linset Goto Github PK

View Code? Open in Web Editor NEW
535.0 70.0 219.0 775 KB

Evil Twin Attack Bash script

Home Page: http://foro.seguridadwireless.net/aplicaciones-y-diccionarios-linux/linset-0-10-wpa2-hack-sin-fuerza-bruta

License: GNU General Public License v3.0

linset's Introduction

Linset Is Not a Social Enginering Tool

First of all, commented that this is a project for educational purposes that have served to me (and hopefully others) to be more in touch with the world of programming and Wireless. It is prohibited under any circumstances the use this tool in foregin Wireless Networks!

How it works

  • Scan the networks.
  • Select network.
  1. Capture handshake (can be used without handshake)
  2. We choose one of several web interfaces tailored for me (thanks to the collaboration of the users)
  3. Mounts one FakeAP imitating the original
  4. A DHCP server is created on FakeAP
  5. It creates a DNS server to redirect all requests to the Host
  6. The web server with the selected interface is launched
  7. The mechanism is launched to check the validity of the passwords that will be introduced
  8. It deauthentificate all users of the network, hoping to connect to FakeAP and enter the password.
  9. The attack will stop after the correct password checking

Are necessary tengais installed dependencies, which Linset check and indicate whether they are installed or not.

It is also preferable that you still keep the patch for the negative channel, because if not, you will have complications relizar to attack correctly

CHANGELOG

########## 06-11-2013 LINSET 0.1
##
## #Fecha de Salida
##
########## 07-11-2013 LINSET 0.1b
##
## #Cambiado el Fakeweb a Inglés
## #Añadida funcion para quitar el modo monitor al salir
## #Arreglado Bucle para no colapsar la pantalla con información
## #Colocada opción de seleccionar otra red
## #Eliminado mensaje sobrante de iwconfig
##
########## 10-11-2013 LINSET 0.2
##
## #Añadido Changelog
## #Reestructurado el codigo
## #Cambiada la posición de ventanas xterm
## #Eliminada creacion extra del archivo route
## #Movido pantalla de comprobacion de handshake a una ventana xterm
## #Añadido menu durante el ataque
## #Añadida comprobacion de dependencias
##
########## 22-11-2013 LINSET 0.3
##
## #Arreglado mensaje de Handshake (no se mostraba bien)
## #Añadida interface de routers Telefonica y Jazztel (Xavi y Zyxel)
## #Fix cuando se usaba canales especificos (exit inesperado)
## #Mejorado DEBUG (function_clear y HOLD)
## #Migración de airbase-ng a hostapd
## #Reestructurado mas codigo
## #Añadido header
## #Añadida funcion para eliminar interfaces en modo monitor sobrantes
##
########## 30-11-2013 LINSET 0.4
##
## #Agregado soporte a airbase-ng junto a hostapd
## #Capacidad para comprobar pass sin handshake (modo Airlin"
## #Arregladas problemas con variables
## #Fix espacio Channel
## #Eliminada seleccion con multiples tarjetas de red
## #Arreglado error sintactico HTML de las interfaces Xavi
## #Implementada interface Zyxel (de routers de Telefonica también)
##
########## 07-12-2013 LINSET 0.5
##
## #Arreglado bug que impide usar mas de una interface
## #Migración de iwconfig a airmon-ng
## #Añadida interface HomeStation (Telefonica)
## #Arregladas llamadas PHP a error2.html inexistente
## #Arreglado bug que entraba en seleccion de Objetivos sin que se haya creado el CSV correspondiente
## #Opcion Salir en el menu de seleccion de webinterfaces
## #Arreglado bug que entraba en seleccion de Clientes sin que los haya
## #Arreglado bug que entraba en seleccion de Canal sin que haya interface valida seleccionada
##
########## 11-12-2013 LINSET 0.6
##
## #Bug al realizar deauth especifico sin que haya airodump en marcha
## #Modificadas variables que gestionan los CSV
## #Modificada estetica a la hora de seleccionar objetivo
## #Añadidos colores a los menus
## #Modificado funcionamiento interno de seleccion de opciones
## #Arreglado bug de variables en la comprobacion de dependencias
## #Añadida dependencia para ser root
##
########## 15-12-2013 LINSET 0.7
##
## #Añadido intro
## #Mejoradas variables de colores
## #Añadida interface de los routers Compal Broadband Networks (ONOXXXX)
## #Mejorada la gestion de la variable de Host_ENC
## #Arreglado bug que entraba en modo de FakeAP elegiendo una opcion inexistente
## #Modificado nombre de HomeStation a ADB Broadband (según su MAC)
## #Agregada licencia GPL v3
##
########## 27-12-2013 LINSET 0.8
##
## #Modificada comprobación de permisos para mostrar todo antes de salir
## #Añadida funcion para matar software que use el puerto 80
## #Agregado dhcpd a los requisitos
## #Cambiado titulo de dependecia de PHP (php5-cgi)
## #Modificado parametro deauth para PC's sin el kernel parcheado
## #Añadida funcion para matar software que use el puerto 53
## #Funcion para remontar los drivers por si se estaba usando la interface wireless
## #Modificada pantalla que comprueba el handshake (mas info) y mejoradas las variables
## #Mejorado menu de comprobacion de password con mas información
## #Añadida lista de clientes que se muestran en el menu de comprobacion de password
## #Cambiado ruta de guardado de password al $HOME
## #Reestructuracion completa del codigo para mejor compresion/busqueda
## #El intro no aparecerá si estas en modo desarrollador
## #No se cerrará el escaneo cuando se compruebe el handshake
#
## #Agregada funcion faltante a la 0.8 inicial (me lo comi sin querer)
##
########## 03-01-2014 LINSET 0.9
##
## #Funcion de limpieza si se cierra el script inesperadamente
## #Mejorada funcion de deteccion del driver
## #Modificadas variables que almacenaban las interfaces con nombres "wlan" y 'mon' para dar mas soporte a otros sistemass
## #La carpeta de trabajo se crea mas temprano para evitar posibles problemas
## #Añadida funcion para comprobar la ultima revision de LINSET
## #Autoactualizacion del script si detecta una version mas nueva de si mismo
## #Backup del script tras la actualizacion por si surgen problemas
## #Fix Menu de tipo de Desautentificacion (no se ve lo que se escribe)
## #Eliminada funcion handshakecheck del background
## #Eliminado mensaje de clientes.txt (problema devido a handcheck)
## #Bug que no mostraba correctamente los clientes conectados
##
########## 19-01-2014 LINSET 0.10
##
## #Agregado curl a las dependencias
## #Bug que no mostraba bien la lista de los clientes
## #Eliminado cuadrado en movimiento por cada sleep que se hacia en la ventana de comprobacion de handshake
## #Mejorada la comunicacion entre PHP y checkhandshake (ya no funciona por tiempos)
## #Cambiada ruta de trabajo de LINSET por defecto
## #Bug wpa_passphrase y wpa_supplicant no se cerraban tras concluir el ataque
## #Suprimidas de forma indefinida todas las interfaces web hasta ahora por motivos de copyright
## #Integrada interface web neutra basada en JQM
##
########## 29-01-2014 LINSET 0.11
##
## #Mejorada la comprobacion de actualizaciones (punto de partida desde la version del script actual)
## #Modificada url de comprobacion
## #Bug mensaje de root privilegies (seguia con el proceso)
## #Modificado orden de inicio (primero comprueba las dependencias)
## #Mejorada interface web
## #Agregada dependencia unzip
## #Bug al seleccionar una interface que no existe
## #Fix variable $privacy
## #Modificaciones leves de interface web
## #Adaptada interface para multiples idiomas
## #Añadido idioma Español
## #Añadido idioma Italiano
##
########## 18-02-2014 LINSET 0.12
##
## #Tarjetas con chipset 8187 pasaran dietctamente al menu de airbase-ng
## #Mensaje javascript adaptado según el idioma
## #Fix variable revision del backup
## #Bug en busqueda infinita de actualizaciones
## #Añadida restauracion de tput a la limpieza del script
## #Cerrar aplicaciones por medio del PID para evitar problemas
## #Añadido mdk3 a dependencias
## #Añadida desautenticacion por mdk3 al AP
## #Organizacion de codigo
## #Mejorada la busqueda de actualizaciones (casi directa)
## #Cambiada ruta de guardado del backup
##
########## 21-03-2014 LINSET 0.13
##
## #Ampliado tiempo de espera antes de detener el atque
## #Corregido bug al hacer backup
## #Añadido reinicio de NetworkManager para Wifislax 4.8
## #Desautentificacion masiva se hace exclusivamente con mdk3
## #Fallo al reiniciar networkmanager cuando acaba el ataque
## #Fix cuando se autocierra linset despues de acabar el ataque
## #Añadido pyrit a dependecias
## #Funcion de comprobacion estricta del handshake
## #Eliminadas dependencias inecesarias
## #Mayor desplazamiento por los menus
## #Añadido lenguaje Frances
## #Añadido lenguaje Portugues
##
########## 16-06-2014 LINSET 0.14
##
## #Info del estado del handshake en captura
## #Redirigido .cap para evitar salida de error de pyrit
## #Capacidad para usar handshake ya capturado previamente
## #Reconfiguradas liberias de jQuerry
## #Arreglado bug de URL's complejas
## #Desautentificar masivamente a varios MAC con igual ESSID
## #Manipaular .cap complejos para usar el handshake del objetivo
## #Invertido menu de comprobacion de handshake
##
##########

How to use

$ chmod +x linset
$ ./linset

linset's People

Contributors

vk496 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linset's Issues

Linset no detecta nombre de red con tilde?

Hola que tal.. agradesco de antemano si me colaboran, no soy muy nuevo en el tema de linset, pero tengo un problema con linset que no lo puedo solucionar, y es que linset cuando escanea las redes wifi y si alguna de ellas lleva tilde, la pobre por ejemplo "RÈD ORIGINAL" linset abre la ap falsa asi "RxC3D ORIGINAL", Es un problema que no puedo solucionar me gustaria que alguien de ustedes me de una mano, Gracias

Not creating FAKE AP

Hello guys,

I have some problems to create the FAKE AP in Linset.

I can make the lock to target network, the problem is being in the creation FAKE AP, when I get the handshake and will create the FAKE AP and FAKE DNS terminal screen shows in few seconds and is closed and is only the Point Access terminal waiting for the victim to connect but the Point Acess fake is not created and am using the latest version of ubuntu.

My version of Linset is the REV 38

I have 3 Wireless adapters that are recognized by Ubuntu to access the internet:

  1. D-Link N300 Nano - E1 (DWA-131)
    
  2. ASUS N1004
    
  3. **Encore ENUWI-SG See A1 (ar5523)**
    

Only ar5523 is recognized by Linset (I do not know why, I'd love that at least the D-Link N300 was recognized too).

http://i.imgur.com/hhhh270.png
captura de tela de 2016-08-09 12-58-31

I saw something related to gcc or kernel but do not quite understand, I am newbie in linux.

can anybody help me?

If you need some other states only say

Error con interfaz mon0 o con los directorios

AL seleccionar la interfaz, apenas le doy al enter me sale este error que medio lo pude ver:
mon0: ERROR while getting interface flags: No such device

Luego al escanear los clientes me da este error que creo yo es ocasionado por el primero:

wc: /tmp/TMPlinset/dump-01.csv: No such file or directory
/home/usuario/GitHub/linset/linset: line 976: [: -le: unary operator expected
cat: /tmp/TMPlinset/dump-01.csv: No such file or directory
expr: syntax error
Listado de APs Objetivo

MAC CHAN SECU PWR ESSID

grep: /tmp/TMPlinset/dump-01.csv:: No such file or directory
grep: invalid: No such file or directory
grep: number: No such file or directory
grep: of: No such file or directory
grep: lines: No such file or directory

  1. head: /tmp/TMPlinset/dump-01.csv: invalid number of lines 100%

no wirelles card found cerrando

Captura de pantalla de 2019-03-19 10-06-08
Captura de pantalla de 2019-03-19 12-01-11

does not detect any script in kali linux
I have tested with wifimosys, linset and fluxion in their latest versions

I am currently connected to the internet via wifi I have two interfaces wlan0 and wlan1

I have installed the latest version of Kali which is Kali Linux 64 Bit 2019.1a

from now on any help will be very well received thank you very much

Hidden SSID

how do I use the Linset Tool's for hidden ssid ?

Funcionamiento de RTL8187L con Hostapd

Excelente el trabajo desempeñado por esta herramienta, LINSET, y el de ustedes para hacerla funcionar de esta manera, pero sería ideal que Hostapd funcionara con el Chipset RTL8187L, sería lo máximo si así fuese.

Saludos cordiales.

unable to capture handshake

Hi , thanks for the script .
I am unable to capture the handshake of a test i am doing here because the scrip starts send the deaauth to connected clients and capturing the handshake at same time , the result is always a bad capture of the handshake .
I think it could be important for you to change a little bit the script to after the deaauth packets then start the handshake capture between client and AP .
i am testing with AP signals between -30dbm and 40dbm witch is very good .

mdk3 with hostapd

Good afternoon!

I got revolver think any problems until he call the hostapd I saw when he does the down / up on the network interface he fucks the mdk3 requesting the interface in monitor mode from what I understand.

It is to solve?

Logs.

TAB-1
airmon-ng start wlan0
No interfering processes found
PHY Interface Driver Chipset

phy0 wlan0 ath9k Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
(mac80211 monitor mode vif enabled for [phy0]wlan0 on [phy0]wlan0mon)
(mac80211 station mode vif disabled for [phy0]wlan0)

root@sniff:~# hostapd hostapd.conf
Configuration file: hostapd.conf
Using interface wlan0mon with hwaddr 9c:2a:70:89:7e:41 and ssid "Ev_Test"
wlan0mon: interface state UNINITIALIZED->ENABLED
wlan0mon: AP-ENABLED

handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed
handle_probe_req: send failed

TAB-2
root@sniff:~# mdk3 wlan0mon
ioctl(SIOCSIWMODE) failed: Device or resource busy

ARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211,
ARPHRD_IEEE80211_FULL or ARPHRD_IEEE80211_PRISM instead. Make
sure RFMON is enabled: run 'airmon-ng start wlan0mon <#>'
Sysfs injection support was not found either.

How to install Lighttpd and Php5-cgi

I am unable to install those tools. I have a Kali linux on a VM.
Thanks!

apt-get install lighttpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libglib2.0-0 : Recommends: xdg-user-dirs but it is not going to be installed
Breaks: glib-networking (< 2.33.12) but 2.32.3-1 is to be installed
libnm-gtk0 : Breaks: network-manager-gnome (< 0.9.10.0) but 0.9.4.1-5 is to be installed
ppp : Breaks: network-manager (< 0.9.8.8-7~) but 0.9.4.0-10 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

apt-get install php5-cgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libnm-gtk0 : Breaks: network-manager-gnome (< 0.9.10.0) but 0.9.4.1-5 is to be installed
ppp : Breaks: network-manager (< 0.9.8.8-7~) but 0.9.4.0-10 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@kali:/media/sf_Shared_folder_Virtual_Box/linset-master#

it will show when i install linset tool....plzzz help me

Autodetectando Resolución...
1366x768

No se han encontrado tarjetas Wireless. Cerrando...

[ ] Ejecutando la limpieza y cerrando.
[-] Limpiando iptables
[-] Restaurando tput
[-] Eliminando archivos
[-] Reiniciando NetworkManager
[+] Limpiza efectuada con exito!

No wireless cards founds

No se han encontrado tarjetas Wireless. Cerrando

I have 2 wireless cards.
I am using Kali .
When I run the script, says I have no wireless cards.

linset

Ubuntu 18.04.01 no funciona wifi al cambiar la mac

instale ubuntu de 64bits de escritorio el wifi funciona normal hasta que intento cambiarle la mac ya sea con macchanger o directamente a interfaz en "editar conexiones" ya he probando resetando con el comando network pero aun sigue sin conectarse.¿alguna solucion? desde ya gracias

Reliance on MDK3

I've just come across your tool. it looks great.

However I'm trying to run on Fedora 21. There is no MDK3 available in any repo I know of and the location that MDK3 woudl otherwise come from is http://homepages.tu-darmstadt.de/~p_larbig/wlan which no longer exists.

Is there an alternative tool or location for this? Thanks

Redirection probleme

Hello there!

So whenever I start the fake network in linset tool, clients connected don't get redirected to portal page automatically .

Is there a way to edit the script so clients get redirected automatically to https:/192.168.1.1 ,

Thanks for your time.

Handshake path

Hi can i know where is the handshake file is stored, because when i attack an ap fake ap start with the previous handshaked ap's. How to fix this

How to CHANAGE login web to another LANGUAGE

I'm not good at this thing. Now, Linset has 5 kind of language. But it's not enough. For another country, Dose anyone will write his password on the unknow language page? Like we used it in Japan. How can I find those page to add one or change language?

grep: invalid: No such file or directory

Hello,

Anytime I run linset ( or fluxion which is pretty similar to linset ) I get the following error
"" wc: /tmp/TMPlinset/dump-01.csv: No such file or directory
./linset: line 976: [: -le: unary operator expected
cat: /tmp/TMPlinset/dump-01.csv: No such file or directory
expr: syntax error
Listado de APs Objetivo

MAC CHAN SECU PWR ESSID

grep: invalid: No such file or directory
grep: number: No such file or directory
grep: of: No such file or directory
grep: lines:: No such file or directory
grep: ‘/tmp/TMPlinset/dump-01.csv’: No such file or directory

  1. head: invalid number of lines: ‘/tmp/TMPlinset/dump-01.csv’ 100%

(*) Red con Clientes
""

Running linset as my administrative user causes this problem BUT logging in as root, it does NOT give this error, I have tested all the provided solutions here:-

1- Patched versions of linset+airmon
2- Editing the configuration changing the grep to detect wlanN ( N=0 OR 1 )

############# Is there any other solution to this PLEASE ##############

Evitar cambio de canal router

Linset en una ventana expulsa a todos y el router responde cambiando de puerto. Si cierran solo esa ventana, inician airodump en el canal específico y con aireplay expulsen a los de mayor actividad dejen mínimo a uno. Por alguna razón funciona perfecto. Ojala puedan agregar esto al script.

micro servidor y logs

probaste usar un mini servidor hecho con netcat o mini-httpd y leer los logs del servidor para obtener la clave?

esto haria el script mucho mas simple

script problem? u can help me with this?

Output linset console:

wc: /tmp/TMPlinset/dump-01.csv: No such file or directory
./linset: line 976: [: -le: unary operator expected
cat: /tmp/TMPlinset/dump-01.csv: No such file or directory
expr: syntax error
Listado de APs Objetivo

MAC CHAN SECU PWR ESSID

grep: /tmp/TMPlinset/dump-01.csv:: No such file or directory
grep: invalid: No such file or directory
grep: number: No such file or directory
grep: of: No such file or directory
grep: lines: No such file or directory

  1. head: /tmp/TMPlinset/dump-01.csv: invalid number of lines 100%

(*) Red con Clientes

    Selecciona Objetivo               
  #> 

Cannot Install these tools plz help....

Aircrack-ng.....OK!
Aireplay-ng.....OK!
Airmon-ng.......OK!
Airodump-ng.....OK!
Awk.............OK!
Curl............OK!
Dhcpd...........Not installed (isc-dhcp-server)
Hostapd.........Not installed
Iwconfig........OK!
Lighttpd........Not installed
Macchanger......OK!
Mdk3............OK!
Php5-cgi........Not installed
Pyrit...........OK!
Python..........OK!
Unzip...........OK!
Xterm...........OK!
root@kali:~/Desktop/linset#


FakeDNS no response

All domains say 192.168.1.1 ex: www.facebook.com -> 192.168.1.1, but no does not respond in a browser...
I think it may be an error in the configuration of the DNS server by which it does not redirect to the web and is limited to showing an internet error.
When I put 192.168.1.1 in the browser the web opens without problems.
How should I modify the "linset" file?
Thanks all.

Android

Sorry for the question, it may look weird cause I know nothing about Linux but is it possible to run this script on Android devices?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.