Sunday, April 2, 2017

Wifiphisher Kali Linux

wifiphisher

wifiphisher Description

About

Wifiphisher is a security tool that mounts automated phishing attacks against WiFi networks in order to obtain secret passphrases or other credentials. It is a social engineering attack that unlike other methods it does not include any brute forcing. It is an easy way for obtaining credentials from captive portals and third party login pages or WPA/WPA2 secret passphrases.
Wifiphisher works on Kali Linux and is licensed under the MIT license.

How it works

After achieving a man-in-the-middle position using the Evil Twin attack, wifiphisher redirects all HTTP requests to an attacker-controlled look-alike web site.
From the victim's perspective, the attack makes use in three phases:
  1. Victim is being deauthenticated from her access point. Wifiphisher continuously jams all of the target access point's wifi devices within range by forging “Deauthenticate” or “Disassociate” packets to disrupt existing associations.
  2. Victim joins a rogue access point. Wifiphisher sniffs the area and copies the target access point's settings. It then creates a rogue wireless access point that is modeled by the target. It also sets up a NAT/DHCP server and forwards the right ports. Consequently, because of the jamming, clients will eventually start connecting to the rogue access point. After this phase, the victim is MiTMed.
  3. Victim is being served a realistic specially-customized phishing page. Wifiphisher employs a minimal web server that responds to HTTP & HTTPS requests. As soon as the victim requests a page from the Internet, wifiphisher will respond with a realistic fake page that asks for credentials or serves malwares. This page will be specifically crafted for the victim. For example, a router config-looking page will contain logos of the victim's vendor. The tool supports community-built templates for different phishing scenarios.
Author: sophron
License: MIT OR GPL license

wifiphisher Help

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
usage: wifiphisher [-h] [-s SKIP] [-jI JAMMINGINTERFACE] [-aI APINTERFACE]
                   [-t TIMEINTERVAL] [-dP DEAUTHPACKETS] [-d] [-nJ] [-e ESSID]
                   [-p PHISHINGSCENARIO] [-pK PRESHAREDKEY]
 
optional arguments:
  -h, --help            show this help message and exit
  -s SKIP, --skip SKIP  Skip deauthing this MAC address. Example: -s
                        00:11:BB:33:44:AA
  -jI JAMMINGINTERFACE, --jamminginterface JAMMINGINTERFACE
                        Manually choose an interface that supports monitor
                        mode for deauthenticating the victims. Example: -jI
                        wlan1
  -aI APINTERFACE, --apinterface APINTERFACE
                        Manually choose an interface that supports AP mode for
                        spawning an AP. Example: -aI wlan0
  -t TIMEINTERVAL, --timeinterval TIMEINTERVAL
                        Choose the time interval between DEAUTH packets being
                        sent
  -dP DEAUTHPACKETS, --deauthpackets DEAUTHPACKETS
                        Choose the number of packets to send in each deauth
                        burst. Default value is 1; 1 packet to the client and
                        1 packet to the AP. Send 2 deauth packets to the
                        client and 2 deauth packets to the AP: -dP 2
  -d, --directedonly    Skip the deauthentication packets to the broadcast
                        address ofthe access points and only send them to
                        client/AP pairs
  -nJ, --nojamming      Skip the deauthentication phase. When this option is
                        used, only one wireless interface is required
  -e ESSID, --essid ESSID
                        Enter the ESSID of the rogue Access Point. This option
                        will skip Access Point selection phase. Example:
                        --essid 'Free WiFi'
  -p PHISHINGSCENARIO, --phishingscenario PHISHINGSCENARIO
                        Choose the phishing scenario to run.This option will
                        skip the scenario selection phase. Example: -p
                        firmware_upgrade
  -pK PRESHAREDKEY, --presharedkey PRESHAREDKEY
                        Add WPA/WPA2 protection on the rogue Access Point.
                        Example: -pK s3cr3tp4ssw0rd

wifiphisher Usage Example

Run the tool by typing 
1
wifiphisher
By running the tool without any options, it will find the right interfaces and interactively ask the user to pick the ESSID of the target network (out of a list with all the ESSIDs in the around area) as well as a phishing scenario to perform.
1
wifiphisher -aI wlan0 -jI wlan4 -p firmware-upgrade
Use wlan0 for spawning the rogue Access Point and wlan4 for DoS attacks. Select the target network manually from the list and perform the "Firmware Upgrade" scenario.


Useful for manually selecting the wireless adapters. The "Firware Upgrade" scenario is an easy way for obtaining the PSK from a password-protected network.
1
wifiphisher --essid CONFERENCE_WIFI -p plugin_update -pK s3cr3tp4ssw0rd
Automatically pick the right interfaces. Target the Wi-Fi with ESSID "CONFERENCE_WIFI" and perform the "Plugin Update" scenario. The Evil Twin will be password-protected with PSK "s3cr3tp4ssw0rd".
Useful against networks with disclosed PSKs (e.g. in conferences). The "Plugin Update" scenario provides an easy way for getting the victims to download malicious executables (e.g. malwares containing a reverse shell payload).
1
wifiphisher --nojamming --essid "FREE WI-FI" -p oauth-login
Do not target any network. Simply spawn an open Wi-Fi network with ESSID "FREE WI-FI" and perform the "OAuth Login" scenario.
Useful against victims in public areas. The "OAuth Login" scenario provides a simple way for capturing credentials from social networks, like Facebook.
Following are all the options along with their descriptions (also available with wifiphisher -h): 


Short form Long form Explanation
-h --help show this help message and exit
-s SKIP --skip SKIP Skip deauthing this MAC address. Example: -s 00:11:BB:33:44:AA
-jI JAMMINGINTERFACE --jamminginterface JAMMINGINTERFACE Manually choose an interface that supports monitor mode for deauthenticating the victims. Example: -jI wlan1
-aI APINTERFACE --apinterface APINTERFACE Manually choose an interface that supports AP mode for spawning an AP. Example: -aI wlan0
-t TIMEINTERVAL --timeinterval TIMEINTERVAL Choose the time interval between DEAUTH packets being sent
-dP DEAUTHPACKETS --deauthpackets DEAUTHPACKETS Choose the number of packets to send in each deauth burst. Default value is 1; 1 packet to the client and 1 packet to the AP. Send 2 deauth packets to the client and 2 deauth packets to the AP: -dP 2
-d --directedonly Skip the deauthentication packets to the broadcast address of the access points and only send them to client/AP pairs
-nJ --nojamming Skip the deauthentication phase. When this option is used, only one wireless interface is required
-e ESSID --essid ESSID Enter the ESSID of the rogue Access Point. This option will skip Access Point selection phase. Example: --essid 'Free WiFi'
-p PHISHINGSCENARIO --phishingscenario PHISHINGSCENARIO Choose the phishing scenario to run.This option will skip the scenario selection phase. Example: -p firmware_upgrade
-pK PRESHAREDKEY --presharedkey PRESHAREDKEY Add WPA/WPA2 protection on the rogue Access Point. Example: -pK s3cr3tp4ssw0rd

Phishing Scenarios

Wifiphisher supports community-built templates for different phishing scenarios. Currently, the following phishing scenarios are in place:
  • Firmware Upgrade Page: A router configuration page without logos or brands asking for WPA/WPA2 password due to a firmware upgrade. Mobile-friendly.
  • OAuth Login Page: A free Wi-Fi Service asking for Facebook credentials to authenticate using OAuth.
  • Browser Plugin Update: A generic browser plugin update page that can be used to serve payloads to the victims.
  • Network Manager Connect: Imitates the behavior of the network manager. This template shows Chrome's "Connection Failed" page and displays a network manager window through the page asking for the pre-shared key. Currently, the network managers of Windows and MAC OS are supported.
Built-in phishing scenarios to use with -p option:
  • firmware-upgrade
  • oauth-login
  • plugin_update
  • wifi_connect

Creating a custom phishing scenario

For specific target-oriented attacks, custom scenarios may be necessary. Creating a phishing scenario is easy and consists of two steps:
1) Create the config.ini
A config.ini file lies in template's root directory and its contents can be divided into two sections:
Example
i) info: This section defines the scenario's characteristics.
  • Name (mandatory): The name of the phishing scenario
  • Description (mandatory): A quick description (<50 words) of the scenario
  • PayloadPath (optional): If the phishing scenario pushes malwares to victims, users can insert the absolute path of the malicious executable here
ii) context: This section is optional and holds user-defined variables that may be later injected to the template. 

Here's an example of a config.ini file:
1
2
3
4
5
6
7
8
> # This is a comment
> [info]
> Name: ISP warning page
> Description: A warning page from victim's ISP asking for DSL credentials
>
> [context]
> victim_name: John Phisher
> victim_ISP: Interwebz
 
2) Create the template files
A template contains the static parts of the desired HTML output and may consist of several static HTML files, images, CSS or Javascript files. Dynamic languages (e.g. PHP) are not supported.
 
Placeholders
The HTML files may also contain some special syntax (think placeholders) describing how dynamic content will be inserted. The dynamic contect may originate from two sources:
i) Beacon frames. Beacon frames contain all the information about the target network and can be used for information gathering. The main process gathers all the interesting information and passes them to the chosen template on the runtime.
At the time of writing, the main process passes the following data:
  • target_ap_essid <str>: The ESSID of the target Access Point
  • target_ap_bssid <str>: The BSSID (MAC) address of the target Access Point
  • target_ap_channel <str<: The channel of the target Access Point
  • target_ap_vendor <str>: The vendor's name of the target Access Point
  • target_ap_logo_path <str>: The relative path of the target Access Point vendor's logo in the filesystem
  • APs_context <list>: A list containing dictionaries of the Access Points captured during the AP selection phase
  • AP <dict>: A dictionary holding the following information regarding an Access Point:
  • channel <str>: The channel of the Access Point
  • essid <str> The ESSID of the Access Point
  • bssid <str> The BSSID (MAC) address of the Access Point
  • vendor <str> The vendor's name of the Access Point
Note that the above values may be 'None' accordingly. For example, all the target_* values will be None if there user did not target an Access Point (by using --essid option). The 'target_ap_logo_path' will be None if the logo of the specific vendor does not exist in the repository.
ii) config.ini file (described above). 

All the variables defined in the "Context" section may be used from within the template files. In case of naming conflicts, the variables from the configuration file will override those coming from the beacon frames.
 
Logging credentials

In order for wifiphisher to know which credentials to log, the values of the 'name' HTML attributes need to be prefixed with the 'wfphshr' string. During POST requests, wifiphisher will log all variables that are prefixed with this string.
Example
Here's a snippet from a template (index.html):
1
2
3
4
5
<p> Dear {{ victim_name }}, This is a message from {{ ISP }}.
A problem was detected regarding your {{ target_ap_vendor }} router. </p>
<p> Please write your credentials to re-connect over PPPOE/PPPOA.</p>
<input type="text" name="wphshr-username"></input>
<input type="text" name="wphshr-password"></input>
In this example, 'victim_name' and 'ISP' variables come from config.ini, while 'target_ap_vendor' variable is from the beacon frames. Both "wphshr-username" and "wphshr-password" will be logged.

How to install wifiphisher

Requirements
Following are the requirements for getting the most out of Wifiphisher:
  • Kali Linux. Although people have made Wifiphisher work on other distros, Kali Linux is the officially supported distribution, thus all new features are primarily tested on this platform.
  • One wireless network adapter that supports AP mode. Drivers should support netlink.
  • One wireless network adapter that supports Monitor mode and is capable of injection. Again, drivers should support netlink. If a second wireless network adapter is not available, you may run the tool with the --nojamming option. This will turn off the de-authentication attack though.
Installin on Kali Linux
1
sudo apt-get install wifiphisher hostapd dnsmasq python-pyric python-jinja2
Installin on BlackArch
1
sudo pacman -S wifiphisher dnsmasq hostapd net-tools python2-pyric python2-j2cli python2-jinja2 --needed

wifiphisher Screenshots

01
02
03






credit link : https://en.kali.tools/?p=90

Wednesday, November 23, 2016

Instalasi Driver Cannon MP237/MP230 di Linux Mint

Berikut adalah sebuah tutorial yang menjelaskan bagaimana cara melakukan instalasi driver printer MP230/M237 pada Linux Mint. Sebelum menuju ke instalasi driver printer, berikut sekilas tentang printer MP230/MP237.
Printer MP230/MP237 merupakan printer yang mempunyai fungsi print, scan, dan photocopy atau bisa kita sebut  fungsi all-in-one. Selain fungsi all-in-one, printer tersebut juga memiliki harga yang cukup terjangkau kalau melihat printer tersebut sudah memiliki fungsi all-in-one (print, scan, dan photocopy). 
Ulasan di atas merupakan sekilas mengenai printer MP230/MP237. Berikut cara instalasi driver printer.
  1. Langkah pertama, buka terminal dengan menekan Ctrl+Alt+T pada keyboard. Kemudian masuk sebagai super user (root).
  2. Ketikkan perintah di bawah ini, kemudian tekan enter untuk melanjutkan.
    sudo add-apt-repository ppa:inameiname/stable
    Masukkan user password ketika diminta dan tekankan Enter untuk melanjutkan. Pada bagian ini akan menambahkan PPA repository ke sistem.
    Kemudian ketikkan perintah update.
    apt-get update
  3. Setelah itu, buka Synaptic Package Manager dari Dash Unity pada Linux Mint.
    Masukkan user password. Kemudian tekan tombol authenticate untuk melanjutkan.
    Tekan tombol reload untuk melakukan refresh terhadap system cache.
    Pada Quick filter box, ketikkan cnijfilter.
    Pilih paket cnijfilter-mp230series.
  4. Kemudian klik kanan pada paket tersebut dan pilih "Mark for Installation".
  5. Terakhir, klik tombol apply untuk memulai instalasi driver printer.
Selama proses instalasi driver printer, hubungkan printer ke PC/komputer. Setelah proses instalasi selesai, jalankan printer untuk mengetes apakah instalasi sudah berhasil. Semoga artikel yang sedikit ini bermanfaat. Baca juga artikel terkait, instalasi driver scan printer MP230/MP237.
Sumber artikel:
http://ubuntuhandbook.org/index.php/2014/12/canon-driver-scangear-mp-ubuntu-14-04/
http://www.linuxku.com/2013/06/install-driver-printer-canon-pixma-mp237-di-ubuntu-1204.html

sumber (source) : https://cmdn01.blogspot.co.id/2016/05/instalasi-driver-cannon-mp237mp230-di.html

Membuat Terminal Linux Bicara

3 Langkah Membuat Terminal Linux Bicara Ketika Dibuka

3 Langkah Membuat Terminal Linux Bicara Ketika Dibuka --Cara membuat Terminal berbicara ketika dijalankan. Jadi anda akan mendengar suara komputer ketika anda menjalankan Terminal Linux. Bagaimana cara membuat Terminal bicara ketika dibuka ayo ikuti caranya dalam 3 langkah mudah berikut ini :

1. Edit File Bashrc

Anda dapat mengedit file bashrc dengan cara, buka Terminal dan ketikkan
sudo gedit .bashrc
 
atau
sudo gedit /etc/bash.bashrc
 
Jika sudah muncul Gedit Text Editor, silahkan tambahkan script yang akan membuat Terminal berbicara pada langkah selanjutnya.
3 Langkah Membuat Terminal Linux Bicara Ketika Dibuka

2. Tambahkan Script SPD-SAY

Script berikut ini akan membuat Terminal anda berbicara ketika anda jalankan. Tambahkan script berikut ini pada baris terakhir pada Text Editor yang sudah terbuka.
spd-say "Welcome"
 
atau untuk suara wanita script diatas menjadi
spd-say -t female2 "Welcome"
 
Atur suara menjadi bahasa Indonesia juga bahasa anak kecil lihat caranya klik disini

3. Restart Komputer

Ini adalah langkah terakhir, agar lingkungan Linux anda mengenali perubahan yang telah terjadi silahkan restart komputer anda dan jalankan Terminal. Pasti ada suara menyapa anda. Selamat mencoba dan semoga bermanfaat!
 
sumber : clik me!