• Stars
    star
    190
  • Rank 202,426 (Top 5 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sticky Fingers Kali Pi

KALI-PI Launcher

Simple touch menu for Raspberry Pi projects using a 3.5" (480x320) or 2.8" (320x240) touch screen based on garthvh's original project.

Thanks to JPearn for porting it to 2.8" and to ArmyGuy255a for cleaning up the code and improving the layout.

It runs as a python script in the framebuffer without needing a desktop environment.

This menu is the default launcher in Sticky Finger's Kali Pi Kali-Pi in action

I was after an easy way to launch X Window on either the TFT screen or through HDMI without the need for massive reconfigurations. I came accross garthvh's project featured on Adafruit and used it as basis for this project

Installation

git clone https://github.com/re4son/Kali-Pi
cd Kali-Pi

customise the file "menu" to match the path, define the screen size, etc.
cusomise the scripts to suit your needs

Important: Pygame is broken on on Debian Jessie. I'll explain below how to fix it.

Usage

sudo ./menu

Layout

Start Screen

menu

All functions are self explainatory. After exiting and application, the screen returns back to the last menu.

The "Screen Off" function launches the python script "menu_screenoff.py", which uses the RPi.GPIO module to turn the screen off. You can turn it back on by pressing anywhere on the screen.

Using the ">>>" button, we can scroll to the next screen, namely "menu_kali-2.py"

The buttons allow us to stop and start services

The button changes to green when the service is running Press the button again to stop the service.

menu-pin.py

The variable "KPPIN" in the file ~/menu can be set to "1" to enable PIN authentication to hide the menus from spying eyes:

menu-pin

Screensaver

The screensaver can be enabled by setting the variable KPTIMEOUT in the file "./menu". Set it to the number of minutes after which the screensaver should kick in (very approximate value). Use 1 for 1 min, 0.5 for 30sec, etc. Touch anywhere on the screen to wake the system up. When KPPIN is set, the screen will return to the PIN menu after waking up.

Run menu at startup

The preferred method to run this script on startup is to add it to the end of ".profile"

nano ~/home/.profile

And add the following line to the bottom of the file

sudo /home/pi/Kali-Pi/menu

Fix Pygame on Debian Jessie

The package "libsdl1.2-15-10", which ships with Debian Jessie, breaks pygame. To make it work we have to revert back to "libsdl1.2-15-5" from Wheezy.

The quickest way is to comment everything out in your /etc/apt/sources.list and temporarily add:

deb http://archive.raspbian.org/raspbian wheezy main contrib non-free

Import the corresponding keys:

deb http://archive.raspbian.org/raspbian wheezy main contrib non-free
gpg -a --export 9165938D90FDDD2E | sudo apt-key add -

Remove the offending package and replace it with the working one:

sudo apt-get update
sudo apt-get remove libsdl1.2debian python-pygame
apt-get install libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0-0 libsdl1.2debian libsmpeg0 python-pygame
sudo apt-mark hold libsdl1.2debian

Restore "/etc/apt/sources.list" to it's original state.

That's it. Pygame is fixed :-)

More Repositories

1

RPi-Tweaks

Shell
212
star
2

WSL-Kali-X

Tweaks to run Kali Linux desktop panels and gui apps on Windows 10
Shell
126
star
3

Churrasco

Changes for Visual Studio 2013
C++
111
star
4

mix-recon

Reconnaissance scripts for penetration testing
Python
55
star
5

re4son-kernel-builder

Shell
46
star
6

Chimichurri

Some minor changes to Chimichurri to get it to compile on modern machines
HTML
43
star
7

Pocket-Kali-live-build

Debian live build for the Pocket-Kali
Shell
41
star
8

Re4son-Pi-TFT-Setup

Shell
32
star
9

android_kernel_oneplus_sm8150

NetHunter kernel for the OnePlus 7
C
28
star
10

AT-TFTP_Long_Filename

Exploits a stack buffer overflow in AT-TFTP v1.9, by sending a request (get/write) for an overly long file name.
Python
12
star
11

Oracle_XDB_FTP_PASS-Exploit

Exploits Oracle 9i XDB ftp password buffer overflow vulnerability
Python
10
star
12

Kali-Pi-firmware

Raspberry Pi firmware used to package the Re4son-Kernel
8
star
13

re4son-linux

C
7
star
14

spritzer

Spritz crypter
C
6
star
15

pi-bluetooth-re4son

Shell
6
star
16

KiTrapOD

Compiled with gcc
C
6
star
17

avahiswitch

Turn on avahi-daemon if /boot/avahi is present
5
star
18

exploitdb-ng

Bug fixes for the Exploit-DB
Python
4
star
19

raspi-switch-display

Raspberry Pi 2 Display switcher (HDMI - Adafruit PiTFT)
Shell
4
star
20

vncservice

Service file to start TightVNC or TigerVNC as a service
Shell
4
star
21

slae-1

Bind shell
C
3
star
22

DV-Pi

Python
3
star
23

partman-btrfs

partman-btrfs packaging for Kali Linux
Shell
3
star
24

live-hacking

C
3
star
25

kali-gemini-linux

Linux kernel for the Gemini PDA by Planet Computers
3
star
26

apt-btrfs-snapshot

apt-btrfs-snapshot packaging for Kali Linux
Python
3
star
27

kali-hw-gemini

Kali settings and tweaks specific to the Gemini PDA by Planet Computers
Shell
3
star
28

slae-5

Meterpreter shellcode analysis
Assembly
2
star
29

Churraskito

Some minor changes to Churraskito to get it to it compile in Visual Studio 2013
HTML
2
star
30

DV-Pi-Menu

Python
2
star
31

MCUFriend

MCUFriend Raspberry Pi Drivers
2
star
32

raspberrypi_70-persistent-net.rules

udev rules file to name network adapter according the the number of the USB port it is plugged into (WLANx)
2
star
33

slae-2

Reverse shell
C
2
star
34

slae-4

XOR ROR additive feedback decoder
Python
2
star
35

RBS-Re4son-Theme

Re4son Linux Theme for Razer Blade Stealth
CSS
2
star
36

slae-3

Egg hunter
C
1
star
37

gnome-shell-kali-re4son

1
star
38

android_kernel_lg_h990

Nethunter Kernel for the LG V20 H990DS
C
1
star
39

slae-6

Polymorphism
Assembly
1
star
40

android_kernel_xiaomi_davinci

Base CAF tag 'LA.UM.8.9.r1-03800-sm6150.0'
C
1
star
41

shellcode-compiler

Bash script that assembles and links a nasm shellcode, then generates and prints out the opcodes with it's length
Shell
1
star
42

android_kernel_asus_grouper_3.0

Nethunter Kernel for the Nexus 7 (2012) Grouper - Kitkat
1
star
43

SshGeoFilter

Shell
1
star
44

rtl8812eu

C
1
star