Giter Site home page Giter Site logo

easy_pwn's Introduction

easy_pwn

easy_pwn is a set of automated scripts designed to setup and run kali linux's chroot environment on Sailfish OS devices.
It allows to start kali desktop (xfce4) on Xwayland with touch screen support (even undercover mode works), without VNC or other ugly stuff behind.
Currently rogue access point and EvilTwin attack scripts are implemented, feel free to contribute.

Usage

easy_pwn.sh [action] [kali-rootfs-path] 

available actions:

  • create download latest kalifs-armhf from nethunter's repositories, mount it,then install the following packages :
    • kali-desktop-xfce : kali default DE (undercover mode works too)
    • Xwayland : required to run X
    • kali-linux-nethunter : nethunter's default tools metapackage
    • mousetweaks : for touch right-click attempt
    • matchbox-keyboard : default virtual keyboard
    • bettercap and bettercap-ui
  • script let you run custom scripts, default available scripts are:
    • wifi_rogue_ap : set up an open access point, redirect traffic from wlan to mobile data then attach bettercap
    • wifi_eviltwin_ap : Evil Twin Attack implementation using hostapd-wpe
  • desktop set some required environment variables, chroot kali and start xfce desktop
  • shell run chrooted shell session on fingerterm
  • update update desktop icons and chroot with latest easy_pwn scripts
  • ssh start a ssh server inside the chroot on port 2244
  • bettercap start bettercap web-ui on 127.0.0.1
  • kill kills all chroot processes
  • quit umount chroot

Requirements

Screenshots

Examples

create a kali-chroot

$ git clone https://github.com/r3vn/easy_pwn.git
$ cd easy_pwn
$ devel-su
  (insert root password)
# ./easy_pwn.sh create /path/to/kali/chroot

start kali desktop

After the "create" process, an icon called "chrootname" should appaer on sfos's app drawer, so the script can be executed directly from sfos as a normal application.
To start the script manually:

# ./easy_pwn.sh desktop /path/to/kali/chroot

start kali shell on fingerterm

# ./easy_pwn.sh shell /path/to/kali/chroot

It is also possible to start a desktop session, in portrait mode, from the shell by running "/opt/easy_pwn/start_desktop.sh" script.

run scripts (example: wifi_rogue_ap)

Make sure to have mobile data enabled and wifi enabled and not connected to any access point before proceed.

# ./easy_pwn.sh script /path/to/kali/chroot wifi_rogue_ap

settings

it is possible to edit default settings for easy_pwn and scripts on mount/settings.sh

todo / known issues

  • Audio doesn't work (fix in progress)
  • included in the script if your chroot is located under an external sdcard, you may need to remount the sd partition with suid enabled as follows
     # mount -o remount,suid /media/sdcard/your-partition-name
    
  • Thunar file manager (kali default) crash the session, anyway nautilus works fine.
  • mousetweaks longpress works with long double tab No right click on touch-only devices (long press on nautilus seems to work)(fix in progress)
  • firefox-esr tabs crash with sounds however chromium works very well
  • multiarch support
  • done. custom scripts

devices

easy_pwn so far was tested on:

  • Xperia X Compact with Sailfish OS 3.2.1.20 (Nuuksio)
  • Jolla Phone with Sailfish OS 3.2.1.20 (Nuuksio)

easy_pwn's People

Contributors

r3vn avatar

Watchers

 avatar

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.