Code Monkey home page Code Monkey logo

kali-pi's Introduction

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 :-)

kali-pi's People

Contributors

re4son 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

kali-pi's Issues

found minor problem in new "any user" feature

Re4son,
I found something we missed when I tested the new user options for version 3.0 the other night.

When issuing "adduser newuser", the Kali pi repo doesn't automatically copy over. So I copied Kali-pi from "pi" to "newuser" manually. Everything seemed fine, but we forgot about something... whenever issuing "sudo" as "newuser", it says "newuser" doest exist in sudoers.

I think it's because I just did usermod to change "pi" into "newuser" while testing, instead of adding user, so everything was replaced with "newuser".

Just a heads up. Idk if it's just something I'm doing wrong or what.

-(aka) Blakk.s

Grey screen after update

Hello,
I am trying to update and upgrade sticky fingers on a raspberry pi zero w but when i try to boot to the GUI I get a grey screen and i have to reflash the sd. Switching to slim controller solves the issue but slim itself doesn't work very good.

Can't 'apt-get upgrade' the system brokes.

I flashed StickyFingers-Kali-Pi-armhf-190703.img to my sd card. It boots everything goes well until I try to upgrade the system. When I type apt-get upgrade -y everything brokes, and nothing helps. (#Section1:)

I have already tried apt --fix-broken install, but his happens (#Section2:)
I tried "sudo dpkg --configure -a" as well, it didn't help.

I already expanded the partition using gparted, so it will fit :)

If I try to install anything like:"apt-get install python3 python3-pip -y" I get this: (#Section3:)
It depends on pure-ftpd what is causes the problem.

I have reflashed the whole sd card and did it again, the results are the same :(

Please send help.
EDIT: I don't know if it matters but it is running on a raspberry pi 4 with 4gb ram.
error.txt

Impossible to get a working terminal over bluetooth

Hello,
I have spent the last 48 hours trying to set up a terminal over bluetooth to control my raspberry pi zero w with sticky fingers on it. Wifi is not an option since I need to use it for other purposes.
The problem is when I connect to the pi using an android bluetooth terminal application, I get the welcome screen followed by:

bash: cannot set terminal process group (6160): Inappropriate ioctl for device
‑bash: no job control in this shell

I am going crazy please help me, lol.

Sticky Fingers menu didn't work

Hello, re4son!
I have installed Sticky Fingers KaliPI pre-install version. When I do /home/pi/Kali-Pi/menu
I see the KaliPi image only. Raspberry Pi 3 B+
Sorry for my English

Reboot problem + timezone reset after miraculous reboot

Good evening,

My issue is the following :

I can change the time without problem on restart with kalipi-config and ntpdate but before installing the kali-linux-all pack.

But as soon as I install the kali-linux-all pack and change the time after installing it.

Well there I can no longer restart kali linux, it freezes at startup after the command line "random cng init done"

And even when I manage to restart as best I can and the time to change

I don't understand why the pack changes the time when I had set it correctly.

After a miraculous reboot the time returned to February 14, 2019 and the date and time language in the upper right became bizarre.

I'm totally overwhelmed and I've been looking for a solution for days.

Thank you

A +

Some question about SDCart

Hi, I have a question about SDCard partition, after i expanding partition to SDCard, if i want to use the SDCard again, and i can not format the SDCard by any partitioning tools,

On Diskpart , it report a error : Diskpart Encountered an error: data error (cyclic redundancy check)

But i still can use this command : sudo dd StickyFingers-Kali-Pi-armhf-180617.img of=/dev/sdb bs=512k to install StickyFingers-Kali-Pi on my SDCard

Re4son plz reply

I have a few issues already asked but not answered yet, as well as a couple more, and some new ideas I need help implementing. You've been absent in the issue section and on your white dome forum

Additional tools in the menu

Hello everybody,

It may sound simple, but I just can't get it (my profile name explains it!) - is there a way to integrate additional scripts? e.g. Airgeddon or bluedoser?

I don't manage to open a shell in which one of these tools runs (it would be awesome if a "numpad" was available for input via the touchscreen.)
Does anyone have a hint?

Don't be surprised at the possibly strange sentence structure. I've never been good at English and the Google translator doesn't make it any better!

Re4son plz reply

I have a few issues already asked but not answered yet, as well as a couple more, and some new ideas I need help implementing. You've been absent in the issue section and on your white dome forum

WiFi manage and monitor mode

Hey I following your works long time thank for give us easer way and powerfull repos:)

I have little question , can i use raspi wifi chip manage and monitoring mode at the same time ? I was try handle with virtual interface but I can't find a solution for this .

I don't want to use screen , i can add a WiFi card for this prosses but when start monitor mode i lost all connections.

This is not an issue i know but I can't find a solution anywhere . Any Suggestions i will waiting everyone

Adding new Menu page - Sticky fingers

Hello Re4son,
I tried adding a new page as menu-6.py and have edited the lines required for previous and next page. Same in menu-5.py to go next in menu-6.py instead of menu-9.py .Problem is when I reboot there is no new page added. Any pointers?

Thank you in advance

can't install re4son kernel due to attempt to backup old kernel on FAT partition

Hello, I'm trying to install sticky fingers as per https://whitedome.com.au/re4son/kali-pi/ on Pi 3B+, but fail during running install.sh:


Errors were encountered while processing:
 /usr/local/src/re4son-kernel_4.14.93-20190126/kalipi-kernel_4.14.93-20190126_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error completing: apt

The initial error is this:

Unpacking kalipi-kernel:armhf (4.14.93-20190126) over (4.19.66-20190903) ...
dpkg: error processing archive /usr/local/src/re4son-kernel_4.14.93-20190126/kalipi-kernel_4.14.93-20190126_armhf.deb (--unpack):
 unable to make backup link of './boot/overlays/audiosense-pi.dtbo' before installing new version: Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

It looks like the reason for this failure is that links are not permited on FAT partitions, which /boot surely is:


root@raspberry:/usr/local/src/re4son-kernel_4.14.93-20190126# cat /etc/fstab
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1

Here's a reference link, BTW: https://raspberrypi.stackexchange.com/a/94827

I've generally followed the manual in the link above, but stuck during installing custom kernel. Installing already prepared image od sticky fingers didn't work as well (well, I could run it and it even supported the TFT, but I couldn't make it run touch menu).

re4son repo. apt can't install libraspberrypi0,libraspberrypi-dev,libraspberrypi-doc and libraspberrypi-bin

root@KaliPi:# apt update
Hit:1 http://kali.cs.nctu.edu.tw/kali kali-rolling InRelease
Hit:2 http://http.re4son-kernel.com/re4son kali-pi InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@KaliPi:# apt install libraspberrypi0 libraspberrypi-dev libraspberrypi-doc libraspberrypi-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libraspberrypi0
E: Unable to locate package libraspberrypi-dev
E: Unable to locate package libraspberrypi-doc
E: Unable to locate package libraspberrypi-bin

libraspberrypi not have on re4son repo?

New Menu

Hi I was wondering if a new menu could be implemented with wifi attacks (such as wifijammer and mdk3) if not could i be told there is a graphical method to make these menus (because from what i have seen the menus where made using pygame).
Thanks

start issues

good morning i'm traing to start the menu in my raspberry pi 4 but when i start ./menu the terminal just get blank and the cursor start going up and down can you help please?

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.