├── .gitignore ├── .gitlab └── issue_templates │ ├── Bug.md │ └── Feature_Request.md ├── .gitmodules ├── LICENSE ├── README.md ├── images ├── 010-NH-Rootless-Installation_Start.jpg ├── 010-NH-Rootless-Installation_Start_s.jpg ├── 020-NH-Rootless-KeX.jpg ├── 020-NH-Rootless-KeX_s.jpg └── nethunter-git-logo.png ├── nethunter-fs └── kali-rolling │ ├── Dockerfile │ ├── README.md │ ├── build.sh │ ├── dictionary │ ├── 89.tar.gz │ ├── pinlist.txt │ └── wordlist.txt │ ├── profiles │ ├── .gitkeep │ ├── kali-nethunter-lxqt-settings.tar.xz │ ├── kali-nethunter-lxqt-settings │ │ ├── lxqt │ │ │ ├── filedialog.conf │ │ │ ├── globalkeyshortcuts.conf │ │ │ ├── lxqt-config-appearance.conf │ │ │ ├── lxqt-config-monitor.conf │ │ │ ├── lxqt-config.conf │ │ │ ├── lxqt-powermanagement.conf │ │ │ ├── lxqt-runner.conf │ │ │ ├── lxqt.conf │ │ │ ├── notifications.conf │ │ │ ├── panel.conf │ │ │ ├── power.conf │ │ │ ├── session.conf │ │ │ └── windowmanagers.conf │ │ ├── openbox │ │ │ └── lxqt-rc.xml │ │ └── pcmanfm-qt │ │ │ └── lxqt │ │ │ └── settings.conf │ └── xstartup │ ├── repo │ ├── .gitkeep │ ├── all │ │ └── .gitkeep │ ├── amd64 │ │ ├── .gitkeep │ │ └── mana-toolkit_1.3.1-0kali2_amd64.deb │ ├── arm64 │ │ ├── .gitkeep │ │ ├── lvm2_3.99.02-3_arm64.deb │ │ └── mana-toolkit_1.3.1-0kali2_arm64.deb │ ├── armhf │ │ ├── .gitkeep │ │ └── mana-toolkit_1.3.1-0kali2_armhf.deb │ └── i386 │ │ ├── .gitkeep │ │ └── mana-toolkit_1.3.1-0kali2_i386.deb │ └── stages │ ├── stage1 │ ├── stage2 │ ├── stage3 │ ├── stage4-kek │ └── stage5-cleanup ├── nethunter-installer ├── README.md ├── boot-patcher │ ├── LICENSE-AnyKernel │ ├── META-INF │ │ └── com │ │ │ └── google │ │ │ └── android │ │ │ ├── update-binary │ │ │ ├── update-binary-anykernel │ │ │ ├── update-binary-anykernel_only │ │ │ └── updater-script │ ├── anykernel.sh │ ├── arch │ │ ├── amd64 │ │ │ ├── system │ │ │ │ └── xbin │ │ │ │ │ └── hid-keyboard │ │ │ └── tools │ │ │ │ ├── bbe │ │ │ │ ├── bootimg │ │ │ │ ├── bzip2 │ │ │ │ ├── chromeos │ │ │ │ └── futility │ │ │ │ ├── lz4 │ │ │ │ ├── sepolicy-inject │ │ │ │ └── sepolicy-inject-M │ │ ├── arm64 │ │ │ ├── system │ │ │ │ └── xbin │ │ │ │ │ └── hid-keyboard │ │ │ └── tools │ │ │ │ ├── bbe │ │ │ │ ├── bootimg │ │ │ │ ├── bzip2 │ │ │ │ ├── chromeos │ │ │ │ └── futility │ │ │ │ ├── lz4 │ │ │ │ ├── sepolicy-inject │ │ │ │ └── sepolicy-inject-M │ │ ├── armhf │ │ │ ├── system │ │ │ │ └── xbin │ │ │ │ │ └── hid-keyboard │ │ │ └── tools │ │ │ │ ├── bbe │ │ │ │ ├── bootimg │ │ │ │ ├── bzip2 │ │ │ │ ├── chromeos │ │ │ │ └── futility │ │ │ │ ├── lz4 │ │ │ │ ├── sepolicy-inject │ │ │ │ └── sepolicy-inject-M │ │ └── i386 │ │ │ ├── system │ │ │ └── xbin │ │ │ │ └── hid-keyboard │ │ │ └── tools │ │ │ ├── bbe │ │ │ ├── bootimg │ │ │ ├── bzip2 │ │ │ ├── chromeos │ │ │ └── futility │ │ │ ├── lz4 │ │ │ ├── sepolicy-inject │ │ │ └── sepolicy-inject-M │ ├── banner │ ├── boot-patcher.sh │ ├── data │ │ └── local │ │ │ └── placeholder │ ├── patch.d-env │ ├── patch.d │ │ ├── 01-ramdisk-patch │ │ ├── 02-no-verity-opt-encrypt │ │ └── 03-kernel-modules │ ├── ramdisk-patch │ │ ├── init.nethunter.rc │ │ └── sbin │ │ │ └── usb_config.sh │ ├── system │ │ └── etc │ │ │ └── firmware │ │ │ ├── ar9170-1.fw │ │ │ ├── ar9170-2.fw │ │ │ ├── bluetooth_rxtx.bin │ │ │ ├── carl9170-1.fw │ │ │ ├── hackrf_jawbreaker_usb.bin │ │ │ ├── hackrf_one_usb.bin │ │ │ ├── htc_7010.fw │ │ │ ├── htc_9271.fw │ │ │ ├── rt2561.bin │ │ │ ├── rt2561s.bin │ │ │ ├── rt2661.bin │ │ │ ├── rt2860.bin │ │ │ ├── rt2870.bin │ │ │ ├── rt3070.bin │ │ │ ├── rt3071.bin │ │ │ ├── rt3290.bin │ │ │ ├── rt73.bin │ │ │ ├── rtlwifi │ │ │ ├── rtl8188efw.bin │ │ │ ├── rtl8188eufw.bin │ │ │ ├── rtl8192cfw.bin │ │ │ ├── rtl8192cfwU.bin │ │ │ ├── rtl8192cfwU_B.bin │ │ │ ├── rtl8192cufw.bin │ │ │ ├── rtl8192cufw_A.bin │ │ │ ├── rtl8192cufw_B.bin │ │ │ ├── rtl8192cufw_TMSC.bin │ │ │ ├── rtl8192defw.bin │ │ │ ├── rtl8192eefw.bin │ │ │ ├── rtl8192eu_ap_wowlan.bin │ │ │ ├── rtl8192eu_nic.bin │ │ │ ├── rtl8192eu_wowlan.bin │ │ │ ├── rtl8192sefw.bin │ │ │ ├── rtl8712u.bin │ │ │ ├── rtl8723aufw_A.bin │ │ │ ├── rtl8723aufw_B.bin │ │ │ ├── rtl8723aufw_B_NoBT.bin │ │ │ ├── rtl8723befw.bin │ │ │ ├── rtl8723befw_36.bin │ │ │ ├── rtl8723bs_ap_wowlan.bin │ │ │ ├── rtl8723bs_bt.bin │ │ │ ├── rtl8723bs_nic.bin │ │ │ ├── rtl8723bs_wowlan.bin │ │ │ ├── rtl8723bu_ap_wowlan.bin │ │ │ ├── rtl8723bu_nic.bin │ │ │ ├── rtl8723bu_wowlan.bin │ │ │ ├── rtl8723fw.bin │ │ │ ├── rtl8723fw_B.bin │ │ │ ├── rtl8821aefw.bin │ │ │ ├── rtl8821aefw_29.bin │ │ │ └── rtl8821aefw_wowlan.bin │ │ │ └── zd1211 │ │ │ ├── zd1211_ub │ │ │ ├── zd1211_uph │ │ │ ├── zd1211_uphm │ │ │ ├── zd1211_uphr │ │ │ ├── zd1211_ur │ │ │ ├── zd1211b_ub │ │ │ ├── zd1211b_uph │ │ │ ├── zd1211b_uphm │ │ │ ├── zd1211b_uphr │ │ │ └── zd1211b_ur │ └── tools │ │ ├── ak3-core.sh │ │ ├── busybox │ │ ├── chromeos │ │ ├── kernel.keyblock │ │ └── kernel_data_key.vbprivk │ │ ├── magiskboot │ │ └── magiskpolicy ├── bootstrap.sh ├── build.py ├── common │ ├── arch │ │ ├── amd64 │ │ │ ├── env.sh │ │ │ └── tools │ │ │ │ ├── busybox │ │ │ │ └── busybox_nh │ │ ├── arm64 │ │ │ ├── env.sh │ │ │ └── tools │ │ │ │ ├── busybox │ │ │ │ └── busybox_nh │ │ ├── armhf │ │ │ ├── env.sh │ │ │ └── tools │ │ │ │ ├── busybox │ │ │ │ └── busybox_nh │ │ └── i386 │ │ │ ├── env.sh │ │ │ └── tools │ │ │ ├── busybox │ │ │ └── busybox_nh │ └── tools │ │ ├── freespace.sh │ │ └── installbusybox.sh ├── kernel-installer-script.sh ├── prep-release.py ├── rootfs │ └── placeholder ├── uninstaller-script.sh ├── uninstaller │ └── META-INF │ │ └── com │ │ └── google │ │ └── android │ │ ├── update-binary │ │ └── updater-script ├── update-script.sh └── update │ ├── META-INF │ └── com │ │ └── google │ │ └── android │ │ ├── update-binary │ │ └── updater-script │ ├── arch │ ├── amd64 │ │ └── tools │ │ │ └── screenres │ ├── arm64 │ │ └── tools │ │ │ └── screenres │ ├── armhf │ │ └── tools │ │ │ └── screenres │ └── i386 │ │ └── tools │ │ └── screenres │ ├── data │ ├── app │ │ └── .gitkeep │ └── local │ │ ├── app │ │ └── .gitkeep │ │ └── placeholder │ ├── system │ ├── addon.d │ │ └── 80-nethunter.sh │ ├── bin │ │ ├── lualibs │ │ │ ├── commands.lua │ │ │ ├── default_toys.lua │ │ │ ├── getopt.lua │ │ │ ├── hf_reader.lua │ │ │ ├── html_dumplib.lua │ │ │ ├── htmlskel.lua │ │ │ ├── mf_default_keys.lua │ │ │ ├── read14a.lua │ │ │ ├── taglib.lua │ │ │ └── utils.lua │ │ └── scripts │ │ │ ├── 14araw.lua │ │ │ ├── cmdline.lua │ │ │ ├── dumptoemul.lua │ │ │ ├── emul2dump.lua │ │ │ ├── emul2html.lua │ │ │ ├── formatMifare.lua │ │ │ ├── hf_read.lua │ │ │ ├── htmldump.lua │ │ │ ├── mfkeys.lua │ │ │ ├── mifare_autopwn.lua │ │ │ ├── ndef_dump.lua │ │ │ ├── parameters.lua │ │ │ ├── remagic.lua │ │ │ ├── test.lua │ │ │ ├── test_t55x7_ask.lua │ │ │ ├── test_t55x7_bi.lua │ │ │ ├── test_t55x7_fsk.lua │ │ │ ├── test_t55x7_psk.lua │ │ │ ├── tnp3dump.lua │ │ │ ├── tnp3sim.lua │ │ │ ├── tracetest.lua │ │ │ └── writeraw.lua │ ├── etc │ │ ├── init.d │ │ │ └── 90userinit │ │ ├── nano │ │ │ ├── asm.nanorc │ │ │ ├── awk.nanorc │ │ │ ├── c.nanorc │ │ │ ├── cmake.nanorc │ │ │ ├── css.nanorc │ │ │ ├── fortran.nanorc │ │ │ ├── groff.nanorc │ │ │ ├── html.nanorc │ │ │ ├── java.nanorc │ │ │ ├── makefile.nanorc │ │ │ ├── nanorc │ │ │ ├── nanorc.nanorc │ │ │ ├── objc.nanorc │ │ │ ├── ocaml.nanorc │ │ │ ├── patch.nanorc │ │ │ ├── perl.nanorc │ │ │ ├── php.nanorc │ │ │ ├── python.nanorc │ │ │ ├── ruby.nanorc │ │ │ ├── sh.nanorc │ │ │ ├── tcl.nanorc │ │ │ ├── tex.nanorc │ │ │ └── xml.nanorc │ │ ├── permissions │ │ │ └── com.offsec.nethunter.store.privileged.xml │ │ └── terminfo │ │ │ ├── E │ │ │ ├── Eterm │ │ │ └── Eterm-color │ │ │ ├── a │ │ │ └── ansi │ │ │ ├── c │ │ │ ├── cons25 │ │ │ └── cygwin │ │ │ ├── d │ │ │ └── dumb │ │ │ ├── h │ │ │ └── hurd │ │ │ ├── l │ │ │ └── linux │ │ │ ├── m │ │ │ ├── mach │ │ │ ├── mach-bold │ │ │ └── mach-color │ │ │ ├── p │ │ │ └── pcansi │ │ │ ├── r │ │ │ ├── rxvt │ │ │ └── rxvt-basic │ │ │ ├── s │ │ │ ├── screen │ │ │ ├── screen-256color │ │ │ ├── screen-256color-bce │ │ │ ├── screen-bce │ │ │ ├── screen-s │ │ │ ├── screen-w │ │ │ └── sun │ │ │ ├── v │ │ │ ├── vt100 │ │ │ ├── vt102 │ │ │ ├── vt220 │ │ │ └── vt52 │ │ │ ├── w │ │ │ ├── wsvt25 │ │ │ └── wsvt25m │ │ │ └── x │ │ │ ├── xterm │ │ │ ├── xterm-256color │ │ │ ├── xterm-color │ │ │ ├── xterm-r5 │ │ │ ├── xterm-r6 │ │ │ ├── xterm-vt220 │ │ │ └── xterm-xfree86 │ └── media │ │ └── bootanimation.zip │ ├── tools │ ├── installchroot.sh │ ├── installsu.sh │ └── previnstall.sh │ └── wallpaper │ ├── 1080x1920.png │ ├── 1080x2160.png │ ├── 1080x2340.png │ ├── 1280x1280.png │ ├── 1280x800.png │ ├── 1440x2560.png │ ├── 1440x2720.png │ ├── 1536x2048.png │ ├── 1920x1920.png │ ├── 2048x1536.png │ ├── 2560x1440.png │ ├── 2560x1600.png │ ├── 2560x2560.png │ ├── 720x1280.png │ ├── 720x1440.png │ ├── 768x1280.png │ └── setwallpaper.sh ├── nethunter-rootless ├── README.md └── install-nethunter-termux └── version.txt /.gitignore: -------------------------------------------------------------------------------- 1 | /nethunter-installer/update/data/app/*.apk 2 | /nethunter-installer/update/supersu.zip 3 | /nethunter-installer/tmp_out 4 | /nethunter-installer/devices 5 | /nethunter-installer/*.zip 6 | /nethunter-fs/.dep_check 7 | /nethunter-fs/output.log 8 | /nethunter-fs/output 9 | /nethunter-fs/kali-* 10 | kalifs-*.tar.xz 11 | .DS_Store 12 | -------------------------------------------------------------------------------- /.gitlab/issue_templates/Bug.md: -------------------------------------------------------------------------------- 1 | Important: Before opening an issue, did you check on the NetHunter Forum to see if this has already been discussed on it? 2 | 3 | Link is: https://forums.kali.org/forumdisplay.php?14-NetHunter-Forums 4 | 5 | ### Device: 6 | 7 | 8 | 9 | ### OS version (KitKat/Lollipop/Marshmallow/Nougat): 10 | 11 | 12 | 13 | ### Built from repo (date and build command) or downloaded from website (links): 14 | 15 | 16 | 17 | ### Issue: 18 | 19 | 20 | 21 | ### Expected behavior: 22 | 23 | 24 | 25 | ### Any idea on where to look at? 26 | 27 | 28 | 29 | ### Screenshots (Optional) 30 | 31 | 32 | 33 | /label ~bug -------------------------------------------------------------------------------- /.gitlab/issue_templates/Feature_Request.md: -------------------------------------------------------------------------------- 1 | Important: Before opening a feature request, did you check on the NetHunter Forum to see if this has already been discussed on it? 2 | 3 | Link is: https://forums.kali.org/forumdisplay.php?14-NetHunter-Forums 4 | 5 | ### Problem to solve 6 | 7 | 8 | 9 | ### Further details 10 | 11 | 12 | 13 | ### Proposal 14 | 15 | 16 | 17 | ### Documentation 18 | 19 | 20 | 21 | ### Links / references 22 | 23 | /label ~feature -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/.gitmodules -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NetHunter - Mobile Penetration Testing Platform 2 | ![Kali NetHunter](https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project/raw/master/images/nethunter-git-logo.png) 3 | ## A project by Offensive Security 4 | **The Kali NetHunter** is an Android penetration testing platform targeted towards Nexus and OnePlus devices built on top of Kali Linux, which includes some special and unique features. 5 | Of course, you have all the usual Kali tools in NetHunter as well as the ability to get a full VNC session from your phone to a graphical Kali chroot, however the strength of NetHunter does not end there. 6 | We've incorporated some amazing features into the NetHunter OS which are both powerful and unique. From pre-programmed HID Keyboard (Teensy) attacks, to BadUSB Man In The Middle attacks, to one-click MANA Evil Access Point setups, access to the Offensive Security Exploit Database... 7 | And yes, NetHunter natively supports wireless 802.11 frame injection with a variety of supported USB NICs. 8 | 9 | ## Documentation and Attack Descriptions 10 | Attack descriptions as well as some documentation to get you started with the installation and setup of Kali NetHunter can be found at https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project/wikis/home 11 | 12 | ## Is Kali NetHunter an Android ROM? 13 | 14 | Kali Linux NetHunter is **not** a ROM but is meant to be installed over an existing stock/factory image of Android. It can also be installed over some Cyanogenmod based ROMs depending on device support. It is heavily based on using custom kernels and only supports a select number of devices. 15 | We're relying on you, the community, to port your devices for the full Kali NetHunter experience. 16 | 17 | ## Frequently Asked Questions 18 | **Q** - Does NetHunter support Marshmallow, or Nexus 9 devices? 19 | 20 | **A** - Yes, check our wiki for more information on supported devices and ROMs https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project/wikis/home#10-supported-devices-and-roms 21 |
22 | 23 | **Q** - What kind of attacks does NetHunter support? 24 | 25 | **A** - Our wiki has a list of included attack tools https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project/wikis/home#60-kali-nethunter-attacks-and-features 26 |
27 | 28 | **Q** - NetHunter is awesome! How do I install it? 29 | 30 | **A** - Follow the instructions on the wiki https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project/wikis/home#40-installing-nethunter-on-top-of-android 31 |
32 | 33 | **Q** - What is the best wireless card for NetHunter? 34 | 35 | **A** - A list of supported devices and chipsets is on the wiki https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project/wikis/Wireless-Cards 36 | 37 | Tue Apr 30 02:09:40 AEST 2019 38 | 39 | -------------------------------------------------------------------------------- /images/010-NH-Rootless-Installation_Start.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/images/010-NH-Rootless-Installation_Start.jpg -------------------------------------------------------------------------------- /images/010-NH-Rootless-Installation_Start_s.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/images/010-NH-Rootless-Installation_Start_s.jpg -------------------------------------------------------------------------------- /images/020-NH-Rootless-KeX.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/images/020-NH-Rootless-KeX.jpg -------------------------------------------------------------------------------- /images/020-NH-Rootless-KeX_s.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/images/020-NH-Rootless-KeX_s.jpg -------------------------------------------------------------------------------- /images/nethunter-git-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/images/nethunter-git-logo.png -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/Dockerfile: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # Dockerfile to build a Kali Linux Nethunter Chroot 3 | ############################################################ 4 | 5 | # Set the base image to Kali 6 | FROM kalilinux/kali-linux-docker 7 | 8 | # Maintainer for this script (shoutout to steev for making Docker image!) 9 | MAINTAINER binkybear@nethunter.com 10 | 11 | RUN echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list && \ 12 | echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list 13 | 14 | ENV DEBIAN_FRONTEND noninteractive 15 | 16 | RUN apt-get -y update && apt-get -y dist-upgrade && apt-get clean 17 | RUN apt-get install -y git-core gnupg flex bison gperf build-essential \ 18 | zip curl libncurses5-dev zlib1g-dev \ 19 | libncurses5-dev gcc-multilib g++-multilib sudo \ 20 | parted kpartx debootstrap pixz qemu-user-static abootimg cgpt vboot-kernel-utils \ 21 | libesd0-dev bc lzma lzop automake autoconf m4 dosfstools rsync u-boot-tools nano \ 22 | schedtool git e2fsprogs device-tree-compiler ccache dos2unix binfmt-support 23 | 24 | ENV KALI_WORKSPACE /root/nethunter-fs 25 | RUN mkdir -p ${KALI_WORKSPACE} 26 | COPY . ${KALI_WORKSPACE} 27 | WORKDIR ${KALI_WORKSPACE} 28 | 29 | CMD ["/root/nethunter-fs/build.sh", "-f"] 30 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/README.md: -------------------------------------------------------------------------------- 1 | # NetHunter chroot builder 2 | 3 | Build a basic NetHunter chroot 4 | 5 | ## Docker support 6 | ```bash 7 | docker build -t nethunter . 8 | docker run --privileged --name nethunter_build -i -t nethunter 2>&1 | tee output.log 9 | docker cp nethunter_build:/root/nethunter-fs/output . 10 | ``` 11 | 12 | ## Dependencies 13 | 14 | This could be built on any debian based system but I recommend building on Kali. 15 | 16 | ```bash 17 | apt-get install -y git-core gnupg flex bison gperf libesd0-dev build-essential \ 18 | zip curl libncurses5-dev zlib1g-dev libncurses5-dev gcc-multilib g++-multilib \ 19 | parted kpartx debootstrap pixz qemu-user-static abootimg cgpt vboot-kernel-utils \ 20 | vboot-utils bc lzma lzop xz-utils automake autoconf m4 dosfstools rsync u-boot-tools \ 21 | schedtool git e2fsprogs device-tree-compiler ccache dos2unix debootstrap 22 | ``` 23 | 24 | ## Running by itself 25 | 26 | To create a full NetHunter system: 27 | ```bash 28 | ./build.sh -f 29 | ``` 30 | To create a minimal NetHunter filesystem: 31 | ```bash 32 | ./build.sh -m 33 | ``` 34 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/dictionary/89.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/dictionary/89.tar.gz -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/profiles/.gitkeep -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings.tar.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings.tar.xz -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/filedialog.conf: -------------------------------------------------------------------------------- 1 | [Sizes] 2 | SplitterPos=200 3 | WindowSize=@Size(700 500) 4 | 5 | [View] 6 | Mode=Detailed 7 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/globalkeyshortcuts.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | AllowGrabBaseKeypad=true 3 | AllowGrabBaseSpecial=false 4 | AllowGrabLocks=false 5 | AllowGrabMiscKeypad=true 6 | AllowGrabMiscSpecial=true 7 | MultipleActionsBehaviour=first 8 | 9 | [Alt%2BF1.1] 10 | Comment=Show/hide main menu 11 | Enabled=true 12 | path=/panel/mainmenu/show_hide 13 | 14 | [Alt%2BF2.2] 15 | Comment=Show/hide runner dialog 16 | Enabled=true 17 | path=/runner/show_hide_dialog 18 | 19 | [Control%2BAlt%2BD.3] 20 | Comment=Show desktop 21 | Enabled=true 22 | path=/panel/showdesktop/show_hide 23 | 24 | [Control%2BAlt%2BE.4] 25 | Comment=Pcmanfm 26 | Enabled=true 27 | Exec=pcmanfm-qt 28 | 29 | [Control%2BAlt%2BI.5] 30 | Comment=Web browser 31 | Enabled=true 32 | Exec=xdg-open, about:blank 33 | 34 | [Control%2BAlt%2BL.6] 35 | Comment=lockscreen 36 | Enabled=true 37 | Exec=xdg-screensaver, lock 38 | 39 | [Control%2BAlt%2BT.7] 40 | Comment=QTerminal 41 | Enabled=true 42 | Exec=qterminal 43 | 44 | [Control%2BF1.8] 45 | Comment=Switch to desktop 1 46 | Enabled=true 47 | path=/panel/desktopswitch/desktop_1 48 | 49 | [Control%2BF10.9] 50 | Comment=Switch to desktop 10 51 | Enabled=true 52 | path=/panel/desktopswitch/desktop_10 53 | 54 | [Control%2BF11.10] 55 | Comment=Switch to desktop 11 56 | Enabled=true 57 | path=/panel/desktopswitch/desktop_11 58 | 59 | [Control%2BF12.11] 60 | Comment=Switch to desktop 12 61 | Enabled=true 62 | path=/panel/desktopswitch/desktop_12 63 | 64 | [Control%2BF2.12] 65 | Comment=Switch to desktop 2 66 | Enabled=true 67 | path=/panel/desktopswitch/desktop_2 68 | 69 | [Control%2BF3.13] 70 | Comment=Switch to desktop 3 71 | Enabled=true 72 | path=/panel/desktopswitch/desktop_3 73 | 74 | [Control%2BF4.14] 75 | Comment=Switch to desktop 4 76 | Enabled=true 77 | path=/panel/desktopswitch/desktop_4 78 | 79 | [Control%2BF5.15] 80 | Comment=Switch to desktop 5 81 | Enabled=true 82 | path=/panel/desktopswitch/desktop_5 83 | 84 | [Control%2BF6.16] 85 | Comment=Switch to desktop 6 86 | Enabled=true 87 | path=/panel/desktopswitch/desktop_6 88 | 89 | [Control%2BF7.17] 90 | Comment=Switch to desktop 7 91 | Enabled=true 92 | path=/panel/desktopswitch/desktop_7 93 | 94 | [Control%2BF8.18] 95 | Comment=Switch to desktop 8 96 | Enabled=true 97 | path=/panel/desktopswitch/desktop_8 98 | 99 | [Control%2BF9.19] 100 | Comment=Switch to desktop 9 101 | Enabled=true 102 | path=/panel/desktopswitch/desktop_9 103 | 104 | [Meta%2B0.20] 105 | Comment=Activate task 10 106 | Enabled=true 107 | path=/panel/taskbar/task_10 108 | 109 | [Meta%2B1.21] 110 | Comment=Activate task 1 111 | Enabled=true 112 | path=/panel/taskbar/task_1 113 | 114 | [Meta%2B2.22] 115 | Comment=Activate task 2 116 | Enabled=true 117 | path=/panel/taskbar/task_2 118 | 119 | [Meta%2B3.23] 120 | Comment=Activate task 3 121 | Enabled=true 122 | path=/panel/taskbar/task_3 123 | 124 | [Meta%2B4.24] 125 | Comment=Activate task 4 126 | Enabled=true 127 | path=/panel/taskbar/task_4 128 | 129 | [Meta%2B5.25] 130 | Comment=Activate task 5 131 | Enabled=true 132 | path=/panel/taskbar/task_5 133 | 134 | [Meta%2B6.26] 135 | Comment=Activate task 6 136 | Enabled=true 137 | path=/panel/taskbar/task_6 138 | 139 | [Meta%2B7.27] 140 | Comment=Activate task 7 141 | Enabled=true 142 | path=/panel/taskbar/task_7 143 | 144 | [Meta%2B8.28] 145 | Comment=Activate task 8 146 | Enabled=true 147 | path=/panel/taskbar/task_8 148 | 149 | [Meta%2B9.29] 150 | Comment=Activate task 9 151 | Enabled=true 152 | path=/panel/taskbar/task_9 153 | 154 | [Print.30] 155 | Comment=screen shot 156 | Enabled=true 157 | Exec=lximage-qt, -s 158 | 159 | [Shift%2BControl%2BF6.31] 160 | Comment=\x2600 \x2193 161 | Enabled=true 162 | Exec=lxqt-config-brightness, -d 163 | 164 | [Shift%2BControl%2BF7.32] 165 | Comment=\x2600 \x2191 166 | Enabled=true 167 | Exec=lxqt-config-brightness, -i 168 | 169 | [XF86AudioLowerVolume.33] 170 | Comment=Decrease sound volume 171 | Enabled=true 172 | path=/panel/volume/down 173 | 174 | [XF86AudioMute.34] 175 | Comment=Mute/unmute sound volume 176 | Enabled=true 177 | path=/panel/volume/mute 178 | 179 | [XF86AudioRaiseVolume.35] 180 | Comment=Increase sound volume 181 | Enabled=true 182 | path=/panel/volume/up 183 | 184 | [XF86MonBrightnessDown.36] 185 | Comment=\x2600 \x2193 186 | Enabled=true 187 | Exec=lxqt-config-brightness, -d 188 | 189 | [XF86MonBrightnessUp.37] 190 | Comment=\x2600 \x2191 191 | Enabled=true 192 | Exec=lxqt-config-brightness, -i 193 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/lxqt-config-appearance.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | ControlGTKThemeEnabled=true 3 | __userfile__=true 4 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/lxqt-config-monitor.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | __userfile__=true 3 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/lxqt-config.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | size=@Size(696 404) 3 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/lxqt-powermanagement.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | __userfile__=true 3 | enableBatteryWatcher=false 4 | enableIdlenessWatcher=false 5 | enableLidWatcher=false 6 | idlenessAction=-1 7 | idlenessTimeSecs=900 8 | runCheckLevel=1 9 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/lxqt-runner.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | __userfile__=true 3 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/lxqt.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | __userfile__=true 3 | theme=kde-plasma 4 | 5 | [Qt] 6 | font="Sans,12,-1,5,50,0,0,0,0,0" 7 | style=Breeze 8 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/notifications.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | __userfile__=true 3 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/panel.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | __userfile__=true 3 | 4 | [desktopswitch] 5 | alignment=Left 6 | type=desktopswitch 7 | 8 | [mainmenu] 9 | alignment=Left 10 | icon=/usr/share/icons/Zen-Kali/places/96/xfce4-panel-menu.svg 11 | ownIcon=true 12 | type=mainmenu 13 | 14 | [panel1] 15 | alignment=-1 16 | animation-duration=0 17 | background-color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0) 18 | background-image= 19 | desktop=0 20 | font-color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0) 21 | hidable=false 22 | iconSize=22 23 | lineCount=1 24 | lockPanel=false 25 | opacity=100 26 | panelSize=32 27 | plugins=mainmenu, showdesktop, desktopswitch, quicklaunch, taskbar, tray, statusnotifier, worldclock 28 | position=Bottom 29 | reserve-space=true 30 | show-delay=0 31 | visible-margin=true 32 | width=100 33 | width-percent=true 34 | 35 | [quicklaunch] 36 | alignment=Left 37 | type=quicklaunch 38 | 39 | [showdesktop] 40 | alignment=Right 41 | type=showdesktop 42 | 43 | [statusnotifier] 44 | alignment=Right 45 | type=statusnotifier 46 | 47 | [taskbar] 48 | alignment=Left 49 | type=taskbar 50 | 51 | [tray] 52 | alignment=Right 53 | type=tray 54 | 55 | [worldclock] 56 | alignment=Right 57 | type=worldclock 58 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/power.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | __userfile__=true 3 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/session.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | __userfile__=true 3 | window_manager=openbox 4 | 5 | [Environment] 6 | BROWSER=firefox 7 | GTK_CSD=0 8 | GTK_OVERLAY_SCROLLING=0 9 | TERM=qterminal 10 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/lxqt/windowmanagers.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | __userfile__=true 3 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/kali-nethunter-lxqt-settings/pcmanfm-qt/lxqt/settings.conf: -------------------------------------------------------------------------------- 1 | [Behavior] 2 | AutoSelectionDelay=600 3 | BookmarkOpenMethod=current_tab 4 | ConfirmDelete=true 5 | ConfirmTrash=false 6 | NoUsbTrash=false 7 | QuickExec=false 8 | SelectNewFiles=false 9 | SingleClick=false 10 | UseTrash=true 11 | 12 | [Desktop] 13 | BgColor=#000000 14 | DesktopCellMargins=@Size(3 1) 15 | DesktopIconSize=48 16 | DesktopShortcuts=Home, Trash, Computer 17 | FgColor=#ffffff 18 | Font="Sans,11,-1,5,50,0,0,0,0,0" 19 | HideItems=false 20 | LastSlide= 21 | ShadowColor=#000000 22 | ShowHidden=false 23 | ShowWmMenu=false 24 | SlideShowInterval=0 25 | SortColumn=name 26 | SortFolderFirst=true 27 | SortOrder=ascending 28 | Wallpaper=/usr/share/lxqt/themes/debian/wallpaper.svg 29 | WallpaperDirectory= 30 | WallpaperMode=zoom 31 | WallpaperRandomize=false 32 | 33 | [FolderView] 34 | BackupAsHidden=false 35 | BigIconSize=48 36 | CustomColumnWidths=@Invalid() 37 | FolderViewCellMargins=@Size(3 3) 38 | HiddenColumns=@Invalid() 39 | Mode=icon 40 | ShadowHidden=false 41 | ShowFilter=false 42 | ShowFullNames=false 43 | ShowHidden=false 44 | SidePaneIconSize=24 45 | SmallIconSize=24 46 | SortCaseSensitive=false 47 | SortColumn=name 48 | SortFolderFirst=true 49 | SortOrder=ascending 50 | ThumbnailIconSize=128 51 | 52 | [Places] 53 | PlacesApplications=true 54 | PlacesComputer=true 55 | PlacesDesktop=true 56 | PlacesHome=true 57 | PlacesNetwork=true 58 | PlacesRoot=true 59 | PlacesTrash=true 60 | 61 | [Search] 62 | searchContentCaseInsensitive=false 63 | searchContentRegexp=true 64 | searchNameCaseInsensitive=false 65 | searchNameRegexp=true 66 | searchRecursive=false 67 | searchhHidden=false 68 | 69 | [System] 70 | Archiver=xarchiver 71 | FallbackIconThemeName=oxygen 72 | OnlyUserTemplates=false 73 | SIUnit=false 74 | SuCommand=lxsudo dbus-run-session -- %s 75 | TemplateRunApp=false 76 | TemplateTypeOnce=false 77 | Terminal=qterminal 78 | 79 | [Thumbnail] 80 | MaxThumbnailFileSize=4096 81 | ShowThumbnails=true 82 | ThumbnailLocalFilesOnly=true 83 | 84 | [Volume] 85 | AutoRun=true 86 | CloseOnUnmount=true 87 | MountOnStartup=true 88 | MountRemovable=true 89 | 90 | [Window] 91 | AlwaysShowTabs=true 92 | FixedHeight=480 93 | FixedWidth=640 94 | LastWindowHeight=480 95 | LastWindowMaximized=false 96 | LastWindowWidth=640 97 | PathBarButtons=true 98 | RememberWindowSize=true 99 | ShowMenuBar=true 100 | ShowTabClose=true 101 | SidePaneMode=places 102 | SplitView=false 103 | SplitterPos=150 104 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/profiles/xstartup: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ############################# 4 | ## All ## 5 | unset SESSION_MANAGER 6 | unset DBUS_SESSION_BUS_ADDRESS 7 | export SHELL=/bin/bash 8 | 9 | ############################# 10 | ## Gnome ## 11 | #[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup 12 | #[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources 13 | #vncconfig -iconic & 14 | #dbus-launch --exit-with-session gnome-session & 15 | 16 | 17 | ############################ 18 | ## LXQT ## 19 | ####exec openbox-session 20 | #exec startlxqt 21 | 22 | 23 | ############################ 24 | ## KDE ## 25 | #exec /usr/bin/startkde 26 | 27 | 28 | ############################ 29 | ## XFCE ## 30 | startxfce4 & -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/repo/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/repo/.gitkeep -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/repo/all/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/repo/all/.gitkeep -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/repo/amd64/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/repo/amd64/.gitkeep -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/repo/amd64/mana-toolkit_1.3.1-0kali2_amd64.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/repo/amd64/mana-toolkit_1.3.1-0kali2_amd64.deb -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/repo/arm64/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/repo/arm64/.gitkeep -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/repo/arm64/lvm2_3.99.02-3_arm64.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/repo/arm64/lvm2_3.99.02-3_arm64.deb -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/repo/arm64/mana-toolkit_1.3.1-0kali2_arm64.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/repo/arm64/mana-toolkit_1.3.1-0kali2_arm64.deb -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/repo/armhf/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/repo/armhf/.gitkeep -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/repo/armhf/mana-toolkit_1.3.1-0kali2_armhf.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/repo/armhf/mana-toolkit_1.3.1-0kali2_armhf.deb -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/repo/i386/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/repo/i386/.gitkeep -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/repo/i386/mana-toolkit_1.3.1-0kali2_i386.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-fs/kali-rolling/repo/i386/mana-toolkit_1.3.1-0kali2_i386.deb -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/stages/stage1: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | mkdir -p "$rootfs" 4 | 5 | if [ ! -f /usr/share/debootstrap/scripts/kali-rolling ]; then 6 | # 7 | # For those not building on Kali 8 | # 9 | echo "Missing kali from debootstrap, downloading it" 10 | 11 | curl "https://gitlab.com/kalilinux/packages/debootstrap/raw/kali/master/scripts/kali" > /usr/share/debootstrap/scripts/kali 12 | ln -s /usr/share/debootstrap/scripts/kali /usr/share/debootstrap/scripts/kali-rolling 13 | fi 14 | 15 | # 16 | # Docker needs binfmt to run arm. Without below commands second-stage and chroot will fail 17 | # http://neophob.com/2014/10/run-arm-binaries-in-your-docker-container-using-boot2docker/ 18 | # 19 | if ! mountpoint -q /proc/sys/fs/binfmt_misc; then 20 | echo "[+] binfmt_misc not mounted, setting up binfmts" 21 | mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc 22 | fi 23 | 24 | if [ "$suse" = true ]; then 25 | echo "[+] Setting up qemu environment on SUSE" 26 | qemu-binfmt-conf.sh 27 | else 28 | update-binfmts --enable "qemu-$qemu_arch" 29 | fi 30 | 31 | echo "[+] Starting debootstrap (download)..." 32 | tries=0 33 | max_tries=5 34 | while ! debootstrap --download-only --verbose --arch $build_arch kali-rolling "$rootfs" http://http.kali.org/kali; do 35 | ((tries++)) 36 | if [ $tries -ge $max_tries ]; then 37 | echo "[!] Error, maximum retries ($max_tries) reached, could not download packages!" 38 | exit 1 39 | fi 40 | echo "[!] Failed to download packages (attempt $tries/$max_tries), trying again in 5 minutes!" 41 | sleep 300 42 | done 43 | 44 | echo "[+] Starting debootstrap (install)..." 45 | debootstrap --foreign --verbose --arch $build_arch kali-rolling "$rootfs" http://http.kali.org/kali 46 | 47 | echo "[+] Installing qemu-$qemu_arch-static interpreter to rootfs" 48 | if [ "$suse" = true ]; then 49 | cp "/usr/bin/qemu-$qemu_arch-binfmt" "$rootfs/usr/bin/" 50 | cp "/usr/bin/qemu-$qemu_arch" "$rootfs/usr/bin/" 51 | else 52 | cp "/usr/bin/qemu-$qemu_arch-static" "$rootfs/usr/bin/" 53 | fi 54 | 55 | echo "[+] Starting debootstrap in chroot (second stage)..." 56 | chroot_do /debootstrap/debootstrap --second-stage 57 | 58 | echo "[+] Completed stage 1!" 59 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/stages/stage2: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Add our sources 4 | echo "[!] Creating /etc/apt/sources.list file" 5 | if [ -n "$build_repo" ]; then 6 | cat << EOF > "$rootfs/etc/apt/sources.list" 7 | deb http://http.kali.org/kali kali-rolling main contrib non-free 8 | deb http://http.kali.org/kali $build_repo main contrib non-free 9 | # For source package access, uncomment the following line 10 | # deb-src http://http.kali.org/kali kali-rolling main contrib non-free 11 | EOF 12 | else 13 | cat << EOF > "$rootfs/etc/apt/sources.list" 14 | deb http://http.kali.org/kali kali-rolling main contrib non-free 15 | # For source package access, uncomment the following line 16 | # deb-src http://http.kali.org/kali kali-rolling main contrib non-free 17 | EOF 18 | fi 19 | 20 | # fix for TUN symbolic link to enable programs like openvpn 21 | # set terminal length to 80 because root destroy terminal length 22 | # add fd to enable stdin/stdout/stderr 23 | echo "[!] Creating /root/.bash_profile file" 24 | cat << EOF > "$rootfs/root/.bash_profile" 25 | export TERM=xterm-256color 26 | stty columns 80 27 | cd /root 28 | if [ ! -d /dev/net ]; then 29 | mkdir -p /dev/net 30 | ln -sf /dev/tun /dev/net/tun 31 | fi 32 | 33 | if [ ! -d /dev/fd ]; then 34 | ln -sf /proc/self/fd /dev/fd 35 | ln -sf /dev/fd/0 /dev/stdin 36 | ln -sf /dev/fd/1 /dev/stdout 37 | ln -sf /dev/fd/2 /dev/stderr 38 | fi 39 | EOF 40 | 41 | # Create hosts file 42 | echo "[!] Creating /etc/hosts file" 43 | cat << EOF > "$rootfs/etc/hosts" 44 | 127.0.0.1 kali localhost 45 | ::1 localhost ip6-localhost ip6-loopback 46 | fe00::0 ip6-localnet 47 | ff00::0 ip6-mcastprefix 48 | ff02::1 ip6-allnodes 49 | ff02::2 ip6-allrouters 50 | EOF 51 | 52 | # Create default capture folders along with /sdcard, /external_sd, /system, /root/.ssh 53 | echo "[!] Creating /root/.ssh directory" 54 | mkdir -p "$rootfs/root/.ssh" 55 | 56 | echo "[!] Creating /root/.vnc directory" 57 | mkdir -p "$rootfs/root/.vnc" 58 | 59 | echo "[!] Creating /etc/skel/.vnc directory" 60 | mkdir -p "$rootfs/etc/skel/.vnc" 61 | 62 | echo "[!] Creating /sdcard, /external_sd, /system mountpoints" 63 | mkdir -p "$rootfs/sdcard" "$rootfs/external_sd" "$rootfs/system" 64 | 65 | echo "[!] Creating /captures directories" 66 | cap="$rootfs/captures" 67 | mkdir -p "$cap/evilap" "$cap/ettercap" "$cap/kismet/db" "$cap/nmap" \ 68 | "$cap/sslstrip" "$cap/tshark" "$cap/wifite" "$cap/tcpdump" \ 69 | "$cap/urlsnarf" "$cap/dsniff" "$cap/honeyproxy" "$cap/mana/sslsplit" 70 | 71 | # Link /lib/modules to /system/lib/modules for modprobe 72 | echo "[!] Creating mountpoint /lib/modules" 73 | mkdir -p "$rootfs/lib/modules" 74 | 75 | echo "[+] Completed stage 2!" 76 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/stages/stage4-kek: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 4 | # Mini documentation 5 | # 6 | # CHROOT PATH: $rootfs 7 | # 8 | 9 | echo "[!] Adding kekrepo" 10 | 11 | rm -rf $rootfs/etc/apt/sources.list 12 | 13 | cat << EOF > "$rootfs/etc/apt/sources.list" 14 | # official kali repo 15 | deb http://http.kali.org/kali kali-rolling main contrib non-free 16 | 17 | # kekrepo 18 | deb [trusted=yes] https://raw.githubusercontent.com/KekHunterOS/apt-repo/master/ rolling main 19 | 20 | # For source package access, uncomment the following line 21 | #deb-src http://http.kali.org/kali kali-rolling main contrib non-free 22 | EOF 23 | 24 | echo "[!] Installing and updating some packages" 25 | 26 | sleep 1 27 | 28 | cat << EOF > "$rootfs/kek" 29 | apt update 30 | apt full-upgrade && apt dist-upgrade 31 | sleep 1 32 | apt-get -o Dpkg::Options::="--force-overwrite" install kali-linux-nethunter mitmf -y 33 | EOF 34 | chmod +x "$rootfs/kek" 35 | chroot_do /kek 36 | sleep 1 37 | rm -rf $rootfs/kek 38 | 39 | echo "[!] Doing some post fixes for better experience" 40 | 41 | # Coping xstartup to def kali user 42 | cp -f "$rootfs/root/.vnc/xstartup" "$rootfs/kali/.vnc/xstartup" 43 | 44 | echo "[!] Creating /kali/.ssh directory for kali user" 45 | mkdir -p "$rootfs/kali/.ssh" 46 | 47 | echo "[!] Creating /root/.vnc directory for kali user" 48 | mkdir -p "$rootfs/kali/.vnc" 49 | 50 | # Add default xstartup file for tigervnc-standalone-server 51 | 52 | cat << EOF >> "$rootfs/etc/skel/.vnc/xstartup" 53 | #!/bin/sh 54 | 55 | ############################# 56 | ## All ## 57 | unset SESSION_MANAGER 58 | unset DBUS_SESSION_BUS_ADDRESS 59 | export SHELL=/bin/bash 60 | 61 | ############################# 62 | ## Gnome ## 63 | #[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup 64 | #[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources 65 | #vncconfig -iconic & 66 | #dbus-launch --exit-with-session gnome-session & 67 | 68 | 69 | ############################ 70 | ## LXQT ## 71 | ####exec openbox-session 72 | #exec startlxqt 73 | 74 | 75 | ############################ 76 | ## KDE ## 77 | #exec /usr/bin/startkde 78 | 79 | 80 | ############################ 81 | ## XFCE ## 82 | startxfce4 & 83 | EOF 84 | 85 | # We should run git clone outside chroot because it has issues with machine-code translation 86 | git clone https://github.com/RfidResearchGroup/proxmark3.git "$rootfs/opt/proxmark3" 87 | 88 | # powershell for arm64 is not yet available in Microsofts repos so let's install it manually 89 | if [ $build_arch == "arm64" ]; then 90 | mkdir -p $rootfs/opt/microsoft/powershell 91 | wget -P $rootfs/opt/microsoft/powershell https://github.com/PowerShell/PowerShell/releases/download/v6.2.0-preview.4/powershell-6.2.0-preview.4-linux-arm64.tar.gz 92 | tar -xzf $rootfs/opt/microsoft/powershell/powershell-6.2.0-preview.4-linux-arm64.tar.gz -C $rootfs/opt/microsoft/powershell 93 | rm $rootfs/opt/microsoft/powershell/powershell-6.2.0-preview.4-linux-arm64.tar.gz 94 | fi 95 | 96 | # Microsoft no longer supports deletion of the file DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY to disable telemetry 97 | # We have to set this environment variable instead 98 | 99 | cat << EOF > "$rootfs/etc/profile.d/powershell.sh" 100 | # Microsoft no longer supports deletion of the file DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY to disable telemetry 101 | # We have to set this environment variable instead 102 | 103 | export POWERSHELL_TELEMETRY_OPTOUT=1 104 | EOF 105 | 106 | cat << EOF >> "$rootfs/etc/bash.bashrc" 107 | # Microsoft no longer supports deletion of the file DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY to disable telemetry 108 | # We have to set this environment variable instead 109 | 110 | export POWERSHELL_TELEMETRY_OPTOUT=1 111 | EOF 112 | 113 | echo "[+] Completed stage 4-kek!" 114 | -------------------------------------------------------------------------------- /nethunter-fs/kali-rolling/stages/stage5-cleanup: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cat << EOF > "$rootfs/cleanup" 4 | #!/bin/bash 5 | rm -f /root/.bash_history 6 | apt-get clean 7 | rm -f /var/lib/apt/lists/* 8 | rm -f /0 9 | rm -f /hs_err* 10 | rm -f /third-stage 11 | rm -f /cleanup 12 | rm -f /usr/bin/qemu* 13 | EOF 14 | 15 | chmod +x "$rootfs/cleanup" 16 | chroot_do /cleanup 17 | 18 | echo "[+] Completed stage 5!" 19 | -------------------------------------------------------------------------------- /nethunter-installer/README.md: -------------------------------------------------------------------------------- 1 | # Kali NetHunter Installer 2 | 3 | The NetHunter Installer is basically just a zip file generated by build.py from the folder layout contained here. 4 | Follow the instructions below to create the installer zip. 5 | All you have to do is flash it through TWRP for a complete Kali NetHunter environment and chroot on your device. 6 | 7 | The boot image patching script is based on [LazyFlasher](https://github.com/jcadduono/lazyflasher)'s kernel-flasher branch. 8 | 9 | ## Instructions 10 | 11 | ### Preparing the environment 12 | 13 | Before building, you will need to initialize the devices repository. 14 | As NetHunter devices have an immense binary history, you will probably want to use a shallow clone. (--depth 1) 15 | To do this, run the command: 16 | ```sh 17 | ./bootstrap.sh 18 | ``` 19 | 20 | ### Build command examples 21 | 22 | Example building for the Nexus 5 (hammerhead): 23 | ```sh 24 | python build.py -d hammerhead --marshmallow 25 | ``` 26 | Building the kernel only (useful for testing if kernel works): 27 | ```sh 28 | python build.py -d hammerhead --marshmallow -k 29 | ``` 30 | Building without the kernel (useful for just updating apps): 31 | ```sh 32 | python build.py -d hammerhead --marshmallow -nk 33 | ``` 34 | Building with adding a full chroot (add kalifs-full.tar.xz to rootfs/[arch]/kalifs-full.tar.xz): 35 | ```sh 36 | python build.py -d hammerhead --marshmallow --rootfs full 37 | ``` 38 | Create a release version: 39 | ```sh 40 | python build.py -d hammerhead --marshmallow --rootfs full --release v3.0 41 | ``` 42 | Force download all third party apps: 43 | ```sh 44 | python build.py --forcedown 45 | ``` 46 | Building the uninstaller: 47 | ```sh 48 | python build.py --uninstaller 49 | ``` 50 | Show help: 51 | ```bash 52 | python build.py -h 53 | ``` 54 | 55 | ## How to add a new/unsupported device 56 | 57 | See the README.md located in the NetHunter Devices repository: 58 | https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-devices 59 | 60 | ## Device changelog 61 | 62 | You can view changes in the commit log of the NetHunter Devices repository: 63 | https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-devices/commits 64 | 65 | Tue Apr 30 21:16:18 AEST 2019 66 | -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/META-INF/com/google/android/update-binary: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | # NetHunter kernel installer backend 3 | 4 | ## start build generated variables 5 | kernel_string= 6 | kernel_author= 7 | kernel_version= 8 | device_names= 9 | generic= 10 | ## end build generated variables 11 | 12 | if [ "$3" ]; then 13 | zip=$3 14 | console=/proc/$$/fd/$2 15 | # write the location of the console buffer to /tmp/console for other scripts to use 16 | echo "$console" > /tmp/console 17 | else 18 | console=$(cat /tmp/console) 19 | [ "$console" ] || console=/proc/$$/fd/1 20 | fi 21 | 22 | SYSTEM="/system" 23 | 24 | tmp=/tmp/nethunter/boot-patcher 25 | 26 | print() { 27 | echo "ui_print ${1:- }" > "$console" 28 | echo 29 | } 30 | 31 | abort() { 32 | [ "$1" ] && { 33 | print "Error: $1" 34 | print "Aborting..." 35 | } 36 | cleanup 37 | print "Failed to patch boot image!" 38 | exit 1 39 | } 40 | 41 | cleanup() { 42 | rm /$SYSTEM/.rw 43 | rm /data/.rw 44 | 45 | umount /system 46 | 47 | [ "$zip" ] && rm /tmp/console 48 | } 49 | 50 | install() { 51 | setperm "$2" "$3" "$tmp$1" 52 | if [ "$4" ]; then 53 | cp -r "$tmp$1" "$(dirname "$4")/" 54 | return 55 | fi 56 | cp -r "$tmp$1" "$(dirname "$1")/" 57 | } 58 | 59 | extract() { 60 | rm -rf "$2" 61 | mkdir -p "$2" 62 | unzip -o "$1" -d "$2" || 63 | abort "Unable to extract! The zip may be corrupt or your device may not have enough RAM to proceed. Consider using a smaller installer if it is available." 64 | } 65 | 66 | setperm() { 67 | find "$3" -type d -exec chmod "$1" {} \; 68 | find "$3" -type f -exec chmod "$2" {} \; 69 | } 70 | 71 | mount() { 72 | mountpoint -q "$1" || /sbin/busybox mount -o rw "$1" || abort "Unable to mount $1 as rw!" 73 | >> "$1/.rw" && return || /sbin/busybox mount -o remount,rw "$1" 74 | >> "$1/.rw" && return || abort "Unable to write to $1!" 75 | } 76 | 77 | print "##################################################" 78 | print " NetHunter Kernel Installer" 79 | if [ "$generic" ]; then 80 | print " for $generic devices - ramdisk modifications only" 81 | else 82 | print " Kernel: $kernel_string" 83 | print " Version: $kernel_version" 84 | print " Author: $kernel_author" 85 | fi 86 | print "##################################################" 87 | 88 | [ "$device_names" ] && { 89 | if ! command -v getprop; then 90 | print "Warning: getprop not found! Skipping device check!" 91 | return 92 | fi 93 | print "Checking device compatibility..." 94 | match=0 95 | ro_product_device=$(getprop ro.product.device) 96 | ro_product_model=$(getprop ro.product.model) 97 | ro_build_product=$(getprop ro.build.product) 98 | for i in $device_names; do 99 | [ "$ro_product_device" = "$i" ] || 100 | [ "$ro_product_model" = "$i" ] || 101 | [ "$ro_build_product" = "$i" ] && 102 | match=1 103 | done 104 | [ $match != 1 ] && abort "Unsupported device" 105 | } 106 | 107 | # Unpack the installer 108 | [ "$zip" ] && { 109 | print "Unpacking the installer, this may take a while..." 110 | extract "$zip" "$tmp" 111 | print "Installer unpacked" 112 | } 113 | cd "$tmp" 114 | 115 | chmod +x env 116 | . ./env.sh 117 | 118 | print "Mounting partitions" 119 | mount /data 120 | # Modern devices use ${SYSTEM} as root ("/") 121 | system_as_root=`getprop ro.build.system_root_image` 122 | if [ "$system_as_root" == "true" ]; then 123 | umount /system 124 | umount /system_root 125 | [ -L /system_root ] && rm -f /system_root 126 | mkdir /system_root 2>/dev/null 127 | /sbin/mount /system 128 | /sbin/mount --move /system /system_root 129 | /sbin/mount -o bind /system_root/system /system 130 | else 131 | mount /system 132 | fi 133 | print "Partitions mounted" 134 | 135 | setperm 0755 0755 tools 136 | 137 | # Install additional busybox applets to /sbin in case something is missing during installation 138 | print "Installing busybox applets to /sbin" 139 | cp tools/busybox /sbin/busybox_nh 140 | /sbin/busybox_nh --install /sbin 141 | 142 | [ -f tools/freespace.sh ] && { 143 | # This actually runs twice when part of the NetHunter updater zip 144 | print "Freeing up some space on $SYSTEM" 145 | sh tools/freespace.sh || 146 | abort "Not enough free space on /system to continue!" 147 | } 148 | 149 | [ -d system/etc/firmware ] && { 150 | print "Copying firmware to $SYSTEM/etc/firmware" 151 | install "/system/etc/firmware" 0755 0644 "$SYSTEM/etc/firmware" 152 | } 153 | 154 | [ -d system/etc/init.d ] && { 155 | print "Copying init.d scripts to $SYSTEM/etc/init.d" 156 | install "/system/etc/init.d" 0755 0755 "$SYSTEM/etc/init.d" 157 | } 158 | 159 | [ -d system/lib ] && { 160 | print "Copying 32-bit shared libraries to $SYSTEM/lib" 161 | install "/system/lib" 0755 0644 "$SYSTEM/lib" 162 | } 163 | 164 | [ -d system/lib64 ] && { 165 | print "Copying 64-bit shared libraries to $SYSTEM/lib64" 166 | install "/system/lib64" 0755 0644 "$SYSTEM/lib64" 167 | } 168 | 169 | [ -d system/bin ] && { 170 | print "Installing $SYSTEM/bin binaries" 171 | install "/system/bin" 0755 0755 "$SYSTEM/bin" 172 | } 173 | 174 | [ -d system/xbin ] && { 175 | print "Installing $SYSTEM/xbin binaries" 176 | install "/system/xbin" 0755 0755 "$SYSTEM/xbin" 177 | } 178 | 179 | [ -d data/local ] && { 180 | print "Copying additional files to /data/local" 181 | install "/data/local" 0755 0644 182 | } 183 | 184 | print "Running busybox installer..." 185 | sh tools/installbusybox.sh 186 | 187 | print "Running boot image patcher..." 188 | sh boot-patcher.sh || abort 189 | 190 | cleanup 191 | print "Boot image patching complete" 192 | -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | # Dummy file; update-binary is a shell script. -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/anykernel.sh: -------------------------------------------------------------------------------- 1 | # AnyKernel3 Ramdisk Mod Script 2 | # osm0sis @ xda-developers 3 | 4 | # Customized for NetHunter 5 | 6 | ## AnyKernel setup 7 | # begin properties 8 | properties() { ' 9 | kernel.string= 10 | do.devicecheck=1 11 | do.modules=1 12 | do.cleanup=0 13 | do.cleanuponabort=0 14 | device.name1= 15 | device.name2= 16 | device.name3= 17 | device.name4= 18 | device.name5= 19 | device.name6= 20 | device.name7= 21 | device.name8= 22 | device.name9= 23 | device.name10= 24 | supported.versions= 25 | '; } # end properties 26 | 27 | # shell variables 28 | block=; 29 | is_slot_device=1; 30 | ramdisk_compression=; 31 | 32 | ## AnyKernel methods (DO NOT CHANGE) 33 | # import patching functions/variables - see for reference 34 | . tools/ak3-core.sh; 35 | 36 | ## NetHunter additions 37 | 38 | SYSTEM="/system"; 39 | SYSTEM_ROOT="/system_root"; 40 | 41 | setperm() { 42 | find "$3" -type d -exec chmod "$1" {} \; 43 | find "$3" -type f -exec chmod "$2" {} \; 44 | } 45 | 46 | install() { 47 | setperm "$2" "$3" "$home$1"; 48 | if [ "$4" ]; then 49 | cp -r "$home$1" "$(dirname "$4")/"; 50 | return; 51 | fi; 52 | cp -r "$home$1" "$(dirname "$1")/"; 53 | } 54 | 55 | [ -d $home/system/etc/firmware ] && { 56 | install "/system/etc/firmware" 0755 0644 "$SYSTEM/etc/firmware"; 57 | } 58 | 59 | [ -d $home/system/etc/init.d ] && { 60 | install "/system/etc/init.d" 0755 0755 "$SYSTEM/etc/init.d"; 61 | } 62 | 63 | [ -d $home/system/lib ] && { 64 | install "/system/lib" 0755 0644 "$SYSTEM/lib"; 65 | } 66 | 67 | [ -d $home/system/lib64 ] && { 68 | install "/system/lib64" 0755 0644 "$SYSTEM/lib64"; 69 | } 70 | 71 | [ -d $home/system/bin ] && { 72 | install "/system/bin" 0755 0755 "$SYSTEM/bin"; 73 | } 74 | 75 | [ -d $home/system/xbin ] && { 76 | install "/system/xbin" 0755 0755 "$SYSTEM/xbin"; 77 | } 78 | 79 | [ -d $home/data/local ] && { 80 | install "/data/local" 0755 0644; 81 | } 82 | 83 | [ -d $home/ramdisk-patch ] && { 84 | setperm "0755" "0750" "$home/ramdisk-patch"; 85 | chown root:shell $home/ramdisk-patch/*; 86 | cp -rp $home/ramdisk-patch/* "$SYSTEM_ROOT/"; 87 | } 88 | 89 | if [ ! "$(grep /init.nethunter.rc $SYSTEM_ROOT/init.rc)" ]; then 90 | insert_after_last "$SYSTEM_ROOT/init.rc" "import .*\.rc" "import /init.nethunter.rc"; 91 | fi; 92 | 93 | if [ ! "$(grep /dev/hidg* $SYSTEM_ROOT/ueventd.rc)" ]; then 94 | insert_after_last "$SYSTEM_ROOT/ueventd.rc" "/dev/kgsl.*root.*root" "# HID driver\n/dev/hidg* 0666 root root"; 95 | fi; 96 | 97 | ui_print "Applying additional anykernel installation patches"; 98 | for p in $(find ak_patches/ -type f); do 99 | ui_print "Applying $p"; 100 | . $p; 101 | done 102 | 103 | ## End NetHunter additions 104 | 105 | ## Trim partitions 106 | fstrim -v /cache; 107 | fstrim -v /data; 108 | 109 | ## AnyKernel file attributes 110 | # set permissions/ownership for included ramdisk files 111 | chmod -R 750 $ramdisk/*; 112 | chown -R root:root $ramdisk/*; 113 | 114 | ## AnyKernel install 115 | dump_boot; 116 | 117 | # begin ramdisk changes 118 | 119 | if [ -d $ramdisk/.backup ]; then 120 | patch_cmdline "skip_override" "skip_override"; 121 | else 122 | patch_cmdline "skip_override" ""; 123 | fi; 124 | 125 | # end ramdisk changes 126 | 127 | write_boot; 128 | ## end install 129 | 130 | -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/amd64/system/xbin/hid-keyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/amd64/system/xbin/hid-keyboard -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/amd64/tools/bbe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/amd64/tools/bbe -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/amd64/tools/bootimg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/amd64/tools/bootimg -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/amd64/tools/bzip2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/amd64/tools/bzip2 -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/amd64/tools/chromeos/futility: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/amd64/tools/chromeos/futility -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/amd64/tools/lz4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/amd64/tools/lz4 -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/amd64/tools/sepolicy-inject: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/amd64/tools/sepolicy-inject -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/amd64/tools/sepolicy-inject-M: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/amd64/tools/sepolicy-inject-M -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/arm64/system/xbin/hid-keyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/arm64/system/xbin/hid-keyboard -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/arm64/tools/bbe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/arm64/tools/bbe -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/arm64/tools/bootimg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/arm64/tools/bootimg -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/arm64/tools/bzip2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/arm64/tools/bzip2 -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/arm64/tools/chromeos/futility: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/arm64/tools/chromeos/futility -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/arm64/tools/lz4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/arm64/tools/lz4 -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/arm64/tools/sepolicy-inject: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/arm64/tools/sepolicy-inject -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/arm64/tools/sepolicy-inject-M: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/arm64/tools/sepolicy-inject-M -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/armhf/system/xbin/hid-keyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/armhf/system/xbin/hid-keyboard -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/armhf/tools/bbe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/armhf/tools/bbe -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/armhf/tools/bootimg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/armhf/tools/bootimg -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/armhf/tools/bzip2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/armhf/tools/bzip2 -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/armhf/tools/chromeos/futility: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/armhf/tools/chromeos/futility -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/armhf/tools/lz4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/armhf/tools/lz4 -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/armhf/tools/sepolicy-inject: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/armhf/tools/sepolicy-inject -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/armhf/tools/sepolicy-inject-M: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/armhf/tools/sepolicy-inject-M -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/i386/system/xbin/hid-keyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/i386/system/xbin/hid-keyboard -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/i386/tools/bbe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/i386/tools/bbe -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/i386/tools/bootimg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/i386/tools/bootimg -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/i386/tools/bzip2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/i386/tools/bzip2 -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/i386/tools/chromeos/futility: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/i386/tools/chromeos/futility -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/i386/tools/lz4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/i386/tools/lz4 -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/i386/tools/sepolicy-inject: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/i386/tools/sepolicy-inject -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/arch/i386/tools/sepolicy-inject-M: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/arch/i386/tools/sepolicy-inject-M -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/banner: -------------------------------------------------------------------------------- 1 | ################################################## 2 | ## ## 3 | ## 88 a8P db 88 88 ## 4 | ## 88 .88' d88b 88 88 ## 5 | ## 88 88' d8''8b 88 88 ## 6 | ## 88 d88 d8' '8b 88 88 ## 7 | ## 8888'88. d8YaaaaY8b 88 88 ## 8 | ## 88P Y8b d8''''''''8b 88 88 ## 9 | ## 88 '88. d8' '8b 88 88 ## 10 | ## 88 Y8b d8' '8b 888888888 88 ## 11 | ## ## 12 | #### ############# NetHunter #################### 13 | Kernel= 14 | Version= 15 | Author= 16 | -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/data/local/placeholder: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/data/local/placeholder -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/patch.d/01-ramdisk-patch: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | . "$env" 4 | 5 | print "Patching the ramdisk for NetHunter & init.d..." 6 | 7 | cd "$ramdisk_patch" 8 | 9 | # fix permissions of patch files 10 | chmod -R 0755 . 11 | 12 | find -type f \( \ 13 | -name "*.rc" ! -name "ueventd.*" \ 14 | \) -exec chmod 0750 {} \; 15 | 16 | find -type f \( \ 17 | -name "*.xml" -o -name "*.do" -o -name "*.pem" -o -name "*.vtab" -o \ 18 | -name "fstab.*" -o -name "*.prop" -o -name "*_contexts" -o \ 19 | -name "ueventd.*" -o -name "sepolicy" -o -name "sepolicy_version" \ 20 | \) -exec chmod 0644 {} \; 21 | 22 | # move the patch files into the ramdisk 23 | cp -rd ./. "$ramdisk/" 24 | 25 | cd "$ramdisk" 26 | 27 | # keep adb secure to stop outside attackers 28 | setprop ro.adb.secure 1 29 | setprop ro.secure 1 30 | 31 | # import nethunter init to init.rc 32 | import_rc init.nethunter.rc 33 | 34 | # ensure /dev/hidg0 and /dev/hidg1 have the correct access rights 35 | ueventd_set "/dev/hidg*" 0666 root root 36 | context_set "/dev/hidg[0-9]*" "u:object_r:input_device:s0" 37 | 38 | exit 0 39 | -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/patch.d/02-no-verity-opt-encrypt: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | . "$env" 4 | 5 | print "Disabling dm-verity & forced encryption..." 6 | 7 | found_fstab=false 8 | 9 | for fstab in fstab.*; do 10 | [ -f "$fstab" ] || continue 11 | print "Found fstab: $fstab" 12 | sed " 13 | s/\b\(forceencrypt\|forcefdeorfbe\)=/encryptable=/g 14 | " "$fstab" | awk ' 15 | $1 ~ /^\// { 16 | n = split($5, flags, ",") 17 | newflags="" 18 | for (i = 1; i <= n; i++) { 19 | if (flags[i] == "") 20 | continue 21 | if (flags[i] ~ /^verify/) 22 | continue 23 | if (flags[i] ~ /^support_scfs/) 24 | continue 25 | if (i > 1) newflags = newflags "," 26 | newflags = newflags flags[i] 27 | } 28 | if ($5 != newflags) $5 = newflags 29 | if ($5 == "") $5 = "defaults" 30 | } 31 | { print } 32 | ' > "$fstab-" 33 | replace_file "$fstab" "$fstab-" 34 | found_fstab=true 35 | done 36 | 37 | $found_fstab || print "Unable to find the fstab!" 38 | 39 | setprop ro.config.dmverity false 40 | rm -f verity_key sbin/firmware_key.cer 41 | 42 | exit 0 43 | -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/patch.d/03-kernel-modules: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | . "$env" 4 | 5 | [ -d "$tmp/modules" ] || { 6 | print "No kernel modules found, skipping" 7 | exit 0 8 | } 9 | 10 | print "Installing /lib/modules symlink" 11 | mkdir -p lib 12 | chmod 0755 lib 13 | rm -rf lib/modules 14 | ln -s /system/lib/modules lib/modules 15 | 16 | print "Installing /sbin/modprobe symlink" 17 | mkdir -p sbin 18 | chmod 0755 sbin 19 | rm -rf sbin/modprobe 20 | ln -s /system/xbin/busybox sbin/modprobe 21 | 22 | cd "$tmp" 23 | 24 | print "Gathering original module layout..." 25 | find /system/lib/modules -name "*.ko" -maxdepth 3 > modules.list 26 | > modules.layout 27 | while read -r kmod; do 28 | kmod_name=$(basename "$(readlink "$kmod")") 29 | echo "$kmod:$kmod_name" >> modules.layout 30 | done < modules.list 31 | 32 | print "Removing old kernel modules..." 33 | rm -rf /system/lib/modules 34 | 35 | print "Installing new kernel modules..." 36 | cp -r modules /system/lib/ 37 | 38 | print "Creating module symlinks..." 39 | 40 | # Create /system/lib/modules/*.ko symlinks for each module installed 41 | find /system/lib/modules -type f -name "*.ko" > modules.installed 42 | while read -r kmod_installed; do 43 | kmod_name=$(basename "$kmod_installed") 44 | kmod_link="/system/lib/modules/$kmod_name" 45 | ln -s "$kmod_installed" "$kmod_link" 46 | echo "Symlinked module (install): $kmod_link -> $kmod_installed" 47 | done < modules.installed 48 | 49 | # Create module symlinks at original module link locations 50 | while read -r kmod; do 51 | kmod_name=$(echo "$kmod" | cut -f2 -d:) 52 | kmod_link=$(echo "$kmod" | cut -f1 -d:) 53 | if [ ! "$kmod_link" ] || [ ! "$kmod_name" ] || [ -e "$kmod_link" ]; then 54 | continue 55 | fi 56 | kmod_installed=$(grep -m1 "/$kmod_name$" modules.installed) 57 | if [ ! -f "$kmod_installed" ]; then 58 | echo "Warning: Module not installed: $kmod_link -> $kmod_installed" 59 | continue 60 | fi 61 | mkdir -p "$(dirname "$kmod_link")" 62 | ln -s "$kmod_installed" "$kmod_link" 63 | echo "Symlinked module (layout): $kmod_link -> $kmod_installed" 64 | done < modules.layout 65 | 66 | setperm 0755 0644 /system/lib/modules 67 | chcon -R -h "u:object_r:system_file:s0" /system/lib/modules 68 | 69 | exit 0 70 | -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/ramdisk-patch/init.nethunter.rc: -------------------------------------------------------------------------------- 1 | # Kali NetHunter init 2 | 3 | on init 4 | export TERMINFO /system/etc/terminfo 5 | export TERM linux 6 | 7 | on boot 8 | # Execute files in /system/etc/init.d near the end of the boot sequence 9 | start run-parts 10 | # Save boot USB configuration for restoring after HID attacks 11 | start save-usb-config 12 | 13 | service run-parts /system/xbin/busybox_nh run-parts /system/etc/init.d 14 | class late_start 15 | seclabel u:r:init:s0 16 | user root 17 | group root 18 | disabled 19 | oneshot 20 | 21 | service save-usb-config /system/bin/sh /sbin/usb_config.sh save 22 | class late_start 23 | seclabel u:r:init:s0 24 | user root 25 | group root 26 | disabled 27 | oneshot 28 | 29 | service reset-usb-config /system/bin/sh /sbin/usb_config.sh reset 30 | class late_start 31 | seclabel u:r:init:s0 32 | user root 33 | group root 34 | disabled 35 | oneshot 36 | 37 | # After using HID attacks we should reset to OEM configuration 38 | on property:sys.usb.config=reset 39 | start reset-usb-config 40 | 41 | # HID attack support (emulated Microsoft Comfort Curve Keyboard 2000) 42 | on property:sys.usb.config=hid 43 | stop adbd 44 | write /sys/class/android_usb/android0/enable 0 45 | write /sys/class/android_usb/android0/idVendor 045E 46 | write /sys/class/android_usb/android0/idProduct 00DD 47 | write /sys/class/android_usb/android0/bDeviceClass 0 48 | write /sys/class/android_usb/android0/bDeviceSubClass 0 49 | write /sys/class/android_usb/android0/bDeviceProtocol 0 50 | write /sys/class/android_usb/android0/iManufacturer "Microsoft" 51 | write /sys/class/android_usb/android0/iProduct "Microsoft USB Comfort Curve Keyboard 2000 (IntelliType Pro)" 52 | write /sys/class/android_usb/android0/functions hid 53 | write /sys/class/android_usb/android0/enable 1 54 | setprop sys.usb.state hid 55 | 56 | # HID + Flash Drive attack support (emulated Kingston DataTraveler 2.0) 57 | on property:sys.usb.config=hid,mass_storage 58 | stop adbd 59 | write /sys/class/android_usb/android0/enable 0 60 | write /sys/class/android_usb/f_mass_storage/lun/cdrom 0 61 | write /sys/class/android_usb/f_mass_storage/lun/ro 0 62 | write /sys/class/android_usb/f_mass_storage/lun/nofua 0 63 | write /sys/class/android_usb/android0/idVendor 0930 64 | write /sys/class/android_usb/android0/idProduct 6545 65 | write /sys/class/android_usb/android0/bDeviceClass 0 66 | write /sys/class/android_usb/android0/bDeviceSubClass 0 67 | write /sys/class/android_usb/android0/bDeviceProtocol 0 68 | write /sys/class/android_usb/android0/iManufacturer "Kingston" 69 | write /sys/class/android_usb/android0/iProduct "DataTraveler 2.0" 70 | write /sys/class/android_usb/android0/functions hid,mass_storage 71 | write /sys/class/android_usb/android0/enable 1 72 | setprop sys.usb.state hid,mass_storage 73 | -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/ramdisk-patch/sbin/usb_config.sh: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | 3 | conf_store=/data/local/usb_config 4 | android_usb=/sys/class/android_usb/android0 5 | 6 | print() { 7 | echo "$*" 8 | log -t "usb_config.sh" "$*" 9 | } 10 | 11 | abort() { 12 | >&2 echo "Error: $*" 13 | log -p e -t "usb_config.sh" "$*" 14 | exit 1 15 | } 16 | 17 | save_file() { 18 | [ -f "$android_usb/$1" ] || return 1 19 | sfd=$(dirname "$conf_store/$1") 20 | [ -d "$sfd" ] || mkdir -p "$sfd" 21 | [ -d "$sfd" ] || return 1 22 | cat "$android_usb/$1" > "$conf_store/$1" 23 | } 24 | 25 | save_usb_config() { 26 | mkdir -p "$conf_store" 27 | [ -d "$conf_store" ] || abort "Could not create '$conf_store' directory" 28 | print "Saving current usb configuration to '$conf_store'" 29 | save_file idVendor 30 | save_file idProduct 31 | save_file bDeviceClass 32 | save_file bDeviceSubClass 33 | save_file bDeviceProtocol 34 | save_file iManufacturer 35 | save_file iProduct 36 | save_file f_mass_storage/inquiry_string 37 | save_file f_mass_storage/lun/cdrom 38 | save_file f_mass_storage/lun/ro 39 | save_file f_mass_storage/lun/nofua 40 | save_file functions 41 | getprop sys.usb.config > "$conf_store/sys.usb.config" 42 | } 43 | 44 | reset_file() { 45 | [ -f "$android_usb/$1" ] || return 1 46 | [ -f "$conf_store/$1" ] || return 1 47 | cat "$conf_store/$1" > "$android_usb/$1" 48 | } 49 | 50 | reset_usb_config() { 51 | [ -d "$conf_store" ] || abort "Could not find '$conf_store' directory" 52 | print "Resetting usb configuration to values in '$conf_store'" 53 | echo 0 > "$android_usb/enable" 54 | reset_file idVendor 55 | reset_file idProduct 56 | reset_file bDeviceClass 57 | reset_file bDeviceSubClass 58 | reset_file bDeviceProtocol 59 | reset_file iManufacturer 60 | reset_file iProduct 61 | reset_file f_mass_storage/inquiry_string 62 | reset_file f_mass_storage/lun/cdrom 63 | reset_file f_mass_storage/lun/ro 64 | reset_file f_mass_storage/lun/nofua 65 | reset_file functions 66 | cfg=$(cat "$conf_store/sys.usb.config") 67 | setprop sys.usb.config "$cfg" 68 | } 69 | 70 | case "$1" in 71 | save) save_usb_config ;; 72 | reset) reset_usb_config ;; 73 | *) abort "Invalid argument - must call with \$1 as 'save' or 'reset'" ;; 74 | esac 75 | -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/ar9170-1.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/ar9170-1.fw -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/ar9170-2.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/ar9170-2.fw -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/bluetooth_rxtx.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/bluetooth_rxtx.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/carl9170-1.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/carl9170-1.fw -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/hackrf_jawbreaker_usb.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/hackrf_jawbreaker_usb.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/hackrf_one_usb.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/hackrf_one_usb.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/htc_7010.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/htc_7010.fw -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/htc_9271.fw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/htc_9271.fw -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rt2561.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rt2561.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rt2561s.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rt2561s.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rt2661.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rt2661.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rt2860.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rt2860.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rt2870.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rt2870.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rt3070.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rt3070.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rt3071.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rt3071.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rt3290.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rt3290.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rt73.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rt73.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8188efw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8188efw.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8188eufw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8188eufw.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cfw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cfw.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cfwU.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cfwU.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cfwU_B.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cfwU_B.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cufw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cufw.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cufw_A.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cufw_A.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cufw_B.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cufw_B.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cufw_TMSC.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192cufw_TMSC.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192defw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192defw.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192eefw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192eefw.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192eu_ap_wowlan.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192eu_ap_wowlan.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192eu_nic.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192eu_nic.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192eu_wowlan.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192eu_wowlan.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192sefw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8192sefw.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8712u.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8712u.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723aufw_A.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723aufw_A.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723aufw_B.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723aufw_B.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723aufw_B_NoBT.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723aufw_B_NoBT.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723befw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723befw.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723befw_36.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723befw_36.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bs_ap_wowlan.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bs_ap_wowlan.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bs_bt.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bs_bt.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bs_nic.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bs_nic.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bs_wowlan.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bs_wowlan.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bu_ap_wowlan.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bu_ap_wowlan.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bu_nic.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bu_nic.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bu_wowlan.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723bu_wowlan.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723fw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723fw.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723fw_B.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8723fw_B.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8821aefw.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8821aefw.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8821aefw_29.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8821aefw_29.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8821aefw_wowlan.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/rtlwifi/rtl8821aefw_wowlan.bin -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211_ub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211_ub -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211_uph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211_uph -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211_uphm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211_uphm -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211_uphr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211_uphr -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211_ur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211_ur -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211b_ub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211b_ub -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211b_uph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211b_uph -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211b_uphm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211b_uphm -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211b_uphr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211b_uphr -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211b_ur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/system/etc/firmware/zd1211/zd1211b_ur -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/tools/busybox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/tools/busybox -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/tools/chromeos/kernel.keyblock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/tools/chromeos/kernel.keyblock -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/tools/chromeos/kernel_data_key.vbprivk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/tools/chromeos/kernel_data_key.vbprivk -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/tools/magiskboot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/tools/magiskboot -------------------------------------------------------------------------------- /nethunter-installer/boot-patcher/tools/magiskpolicy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/boot-patcher/tools/magiskpolicy -------------------------------------------------------------------------------- /nethunter-installer/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | GIT_ACCOUNT=kalilinux 4 | GIT_REPOSITORY=nethunter/build-scripts/kali-nethunter-devices 5 | 6 | ABORT() { 7 | [ "$1" ] && echo "Error: $*" 8 | exit 1 9 | } 10 | 11 | cd "$(dirname "$0")" || ABORT "Failed to enter script directory!" 12 | 13 | if [ ! "$(basename "$(pwd)")" = "nethunter-installer" ]; then 14 | ABORT "You must run this script from the nethunter-installer directory!" 15 | fi 16 | 17 | if [ -d devices ]; then 18 | echo "The devices directory already exists, choose an option:" 19 | echo " U) Update devices to latest commit (default)" 20 | echo " D) Delete devices folder and start over" 21 | echo " C) Cancel" 22 | printf "Your choice? (U/d/c): " 23 | read -r choice 24 | case $choice in 25 | U*|u*|"") 26 | echo "Updating devices (fetch & rebase)..." 27 | cd devices || ABORT "Failed to enter devices directory!" 28 | git fetch && git rebase || ABORT "Failed to update devices!" 29 | exit 0 30 | ;; 31 | D*|d) 32 | echo "Deleting devices folder..." 33 | rm -rf devices ;; 34 | *) 35 | ABORT ;; 36 | esac 37 | fi 38 | 39 | clonecmd="git clone" 40 | 41 | printf "Would you like to use the experimental devices branch? (y/N): " 42 | read -r choice 43 | case $choice in 44 | y*|Y*) 45 | clonebranch=experimental ;; 46 | *) 47 | clonebranch=master ;; 48 | esac 49 | 50 | printf "Would you like to grab the full history of devices? (y/N): " 51 | read -r choice 52 | case $choice in 53 | y*|Y*) ;; 54 | *) 55 | clonecmd="$clonecmd --depth 1" ;; 56 | esac 57 | 58 | printf "Would you like to use SSH authentication (faster, but requires a GitHub account with SSH keys)? (y/N): " 59 | read -r choice 60 | case $choice in 61 | y*|Y*) 62 | cloneurl="git@gitlab.com:${GIT_ACCOUNT}/${GIT_REPOSITORY}" ;; 63 | *) 64 | cloneurl="https://gitlab.com/${GIT_ACCOUNT}/${GIT_REPOSITORY}.git" ;; 65 | esac 66 | 67 | clonecmd="$clonecmd --branch $clonebranch $cloneurl devices" 68 | echo "Running command: $clonecmd" 69 | 70 | $clonecmd || ABORT "Failed to git clone devices!" 71 | 72 | exit 0 73 | -------------------------------------------------------------------------------- /nethunter-installer/common/arch/amd64/env.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | export LIBDIR=/system/lib64 3 | export ARCH=amd64 4 | -------------------------------------------------------------------------------- /nethunter-installer/common/arch/amd64/tools/busybox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/common/arch/amd64/tools/busybox -------------------------------------------------------------------------------- /nethunter-installer/common/arch/amd64/tools/busybox_nh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/common/arch/amd64/tools/busybox_nh -------------------------------------------------------------------------------- /nethunter-installer/common/arch/arm64/env.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | export LIBDIR=/system/lib64 3 | export ARCH=arm64 4 | -------------------------------------------------------------------------------- /nethunter-installer/common/arch/arm64/tools/busybox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/common/arch/arm64/tools/busybox -------------------------------------------------------------------------------- /nethunter-installer/common/arch/arm64/tools/busybox_nh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/common/arch/arm64/tools/busybox_nh -------------------------------------------------------------------------------- /nethunter-installer/common/arch/armhf/env.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | export LIBDIR=/system/lib 3 | export ARCH=armhf 4 | -------------------------------------------------------------------------------- /nethunter-installer/common/arch/armhf/tools/busybox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/common/arch/armhf/tools/busybox -------------------------------------------------------------------------------- /nethunter-installer/common/arch/armhf/tools/busybox_nh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/common/arch/armhf/tools/busybox_nh -------------------------------------------------------------------------------- /nethunter-installer/common/arch/i386/env.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | export LIBDIR=/system/lib 3 | export ARCH=i386 4 | -------------------------------------------------------------------------------- /nethunter-installer/common/arch/i386/tools/busybox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/common/arch/i386/tools/busybox -------------------------------------------------------------------------------- /nethunter-installer/common/arch/i386/tools/busybox_nh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/common/arch/i386/tools/busybox_nh -------------------------------------------------------------------------------- /nethunter-installer/common/tools/freespace.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | # Move safe apps from system to data partition to free up space for installation 3 | 4 | tmp=$(readlink -f "$0") 5 | tmp=${tmp%/*/*} 6 | . "$tmp/env.sh" 7 | 8 | console=$(cat /tmp/console) 9 | [ "$console" ] || console=/proc/$$/fd/1 10 | 11 | print() { 12 | echo "ui_print - $1" > $console 13 | echo 14 | } 15 | 16 | # Free space we require on /system (in Megabytes) 17 | SpaceRequired=50 18 | 19 | MoveableApps=" 20 | QuickOffice 21 | CloudPrint2 22 | YouTube 23 | PlusOne 24 | PlayGames 25 | Drive 26 | Music2 27 | Maps 28 | Magazines 29 | Newsstand 30 | Currents 31 | Photos 32 | Books 33 | Street 34 | Hangouts 35 | KoreanIME 36 | GoogleHindiIME 37 | GooglePinyinIME 38 | iWnnIME 39 | Keep 40 | FaceLock 41 | Wallet 42 | HoloSpiralWallpaper 43 | BasicDreams 44 | PhaseBeam 45 | LiveWallpapersPicker 46 | " 47 | 48 | IFS=" 49 | " 50 | 51 | MNT=/system 52 | SA=$MNT/app 53 | DA=/data/app 54 | 55 | UpdateFreeSpace() { 56 | FreeSpace=$(df -m "$MNT" | awk -vmnt="$MNT" ' 57 | $6 == mnt { print $4; exit } 58 | $5 == mnt { print $3; exit } 59 | ') 60 | # magical number checking hax 61 | [ "${FreeSpace##*[!0-9]*}" ] && return 62 | 63 | print "Warning: Could not get free space, continuing anyway!" 64 | exit 0 65 | } 66 | 67 | UpdateFreeSpace 68 | 69 | if [ "$FreeSpace" -gt "$SpaceRequired" ]; then 70 | exit 0 71 | fi 72 | 73 | print "Free space (before): $FreeSpace MB" 74 | 75 | for app in $MoveableApps; do 76 | UpdateFreeSpace 77 | if [ "$FreeSpace" -gt "$SpaceRequired" ]; then 78 | break 79 | fi 80 | if [ -d "$SA/$app/" ]; then 81 | if [ -d "$DA/$app/" ] || [ -f "$DA/$app.apk" ]; then 82 | print "Removing $SA/$app/ (extra)" 83 | rm -rf "$SA/$app/" 84 | else 85 | print "Moving $app/ to $DA" 86 | mv "$SA/$app/" "$DA/" 87 | fi 88 | fi 89 | if [ -f "$SA/$app.apk" ]; then 90 | if [ -d "$DA/$app/" ] || [ -f "$DA/$app.apk" ]; then 91 | print "Removing $SA/$app.apk (extra)" 92 | rm -f "$SA/$app.apk" 93 | else 94 | print "Moving $app.apk to $DA" 95 | mv "$SA/$app.apk" "$DA/" 96 | fi 97 | fi 98 | done 99 | 100 | print "Free space (after): $FreeSpace MB" 101 | 102 | if [ ! "$FreeSpace" -gt "$SpaceRequired" ]; then 103 | print "Unable to free up $SpaceRequired MB of space on '$MNT'!" 104 | exit 1 105 | fi 106 | 107 | exit 0 108 | -------------------------------------------------------------------------------- /nethunter-installer/common/tools/installbusybox.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | # Install NetHunter's busybox 3 | 4 | tmp=$(readlink -f "$0") 5 | tmp=${tmp%/*/*} 6 | . "$tmp/env.sh" 7 | 8 | console=$(cat /tmp/console) 9 | [ "$console" ] || console=/proc/$$/fd/1 10 | 11 | print() { 12 | echo "ui_print - $1" > $console 13 | echo 14 | } 15 | 16 | xbin=/system/xbin 17 | 18 | print "Installing busybox..." 19 | rm -f $xbin/busybox_nh 20 | cp "$tmp/tools/busybox_nh" $xbin/busybox_nh 21 | chmod 0755 $xbin/busybox_nh 22 | $xbin/busybox_nh --install -s $xbin 23 | 24 | [ -e $xbin/busybox ] || { 25 | print "$xbin/busybox not found! Symlinking..." 26 | ln -s $xbin/busybox_nh $xbin/busybox 27 | } 28 | -------------------------------------------------------------------------------- /nethunter-installer/kernel-installer-script.sh: -------------------------------------------------------------------------------- 1 | boot-patcher/META-INF/com/google/android/update-binary -------------------------------------------------------------------------------- /nethunter-installer/rootfs/placeholder: -------------------------------------------------------------------------------- 1 | you can place kalifs-[arch]-[size].tar.xz here 2 | -------------------------------------------------------------------------------- /nethunter-installer/uninstaller-script.sh: -------------------------------------------------------------------------------- 1 | uninstaller/META-INF/com/google/android/update-binary -------------------------------------------------------------------------------- /nethunter-installer/uninstaller/META-INF/com/google/android/update-binary: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | # Kali NetHunter uninstaller (does not currently do anything useful, anyone wanna take it on?) 3 | 4 | [ "$3" ] && { 5 | zip=$3 6 | console=/proc/$$/fd/$2 7 | # write the location of the console buffer to /tmp/console for other scripts to use 8 | echo "$console" > /tmp/console 9 | } || { 10 | console=$(cat /tmp/console) 11 | [ "$console" ] || console=/proc/$$/fd/1 12 | } 13 | 14 | print() { 15 | echo "ui_print $1" > $console 16 | echo 17 | } 18 | 19 | abort() { 20 | [ "$1" ] && { 21 | print "Error: $1" 22 | print "Aborting..." 23 | } 24 | cleanup 25 | print "Failed to uninstall!" 26 | exit 1 27 | } 28 | 29 | cleanup() { 30 | rm /system/.rw 31 | rm /data/.rw 32 | 33 | umount /system 34 | 35 | [ "$zip" ] && rm /tmp/console 36 | } 37 | 38 | mount() { 39 | mountpoint -q "$1" || /sbin/busybox mount -o rw "$1" || abort "Unable to mount $1 as rw!" 40 | >> "$1/.rw" && return || /sbin/busybox mount -o remount,rw "$1" 41 | >> "$1/.rw" && return || abort "Unable to write to $1!" 42 | } 43 | 44 | print "***********************" 45 | print " NetHunter Uninstaller " 46 | print "***********************" 47 | 48 | mount /system 49 | mount /data 50 | 51 | # Remove added firmware (folder would only exist if you installed NetHunter) 52 | [ -d "/system/etc/firmware/rtlwifi" ] && { 53 | print "@Removing Firmware"; 54 | rm -rf /system/etc/firmware/rtlwifi 55 | rm -rf /system/etc/firmware/zd1211 56 | rm -f /system/etc/firmware/ar9170-1.fw 57 | rm -f /system/etc/firmware/ar9170-2.fw 58 | rm -f /system/etc/firmware/carl9170.fw 59 | rm -f /system/etc/firmware/htc_7010.fw 60 | rm -f /system/etc/firmware/rt73.bin 61 | rm -f /system/etc/firmware/rt2561.bin 62 | rm -f /system/etc/firmware/rt2860.bin 63 | rm -f /system/etc/firmware/rt2870.bin 64 | rm -f /system/etc/firmware/rt3070.bin 65 | } 66 | 67 | [ -d "/system/priv-app/NetHunter" ] && { 68 | print "@Removing NetHunter.apk" 69 | rm -rf /system/priv-app/NetHunter 70 | } 71 | 72 | [ -d "/system/priv-app/NetHunter-Terminal" ] && { 73 | print "@Removing Term-nh.apk" 74 | rm -rf /system/priv-app/NetHunter-Terminal 75 | } 76 | 77 | [ -d "/system/priv-app/NetHunter-VNC" ] && { 78 | print "@Removing VNC-nh.apk" 79 | rm -rf /system/priv-app/NetHunter-VCN 80 | } 81 | 82 | [ -d "/data/data/com.offsec.nethunter" ] && { 83 | print "@Removing NetHunter chroot/data" 84 | rm -rf /data/data/com.offsec.nethunter 85 | } 86 | 87 | cleanup 88 | print "@Uninstall complete" 89 | -------------------------------------------------------------------------------- /nethunter-installer/uninstaller/META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | # Dummy file; update-binary is a shell script. -------------------------------------------------------------------------------- /nethunter-installer/update-script.sh: -------------------------------------------------------------------------------- 1 | update/META-INF/com/google/android/update-binary -------------------------------------------------------------------------------- /nethunter-installer/update/META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | # Dummy file; update-binary is a shell script. -------------------------------------------------------------------------------- /nethunter-installer/update/arch/amd64/tools/screenres: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/arch/amd64/tools/screenres -------------------------------------------------------------------------------- /nethunter-installer/update/arch/arm64/tools/screenres: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/arch/arm64/tools/screenres -------------------------------------------------------------------------------- /nethunter-installer/update/arch/armhf/tools/screenres: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/arch/armhf/tools/screenres -------------------------------------------------------------------------------- /nethunter-installer/update/arch/i386/tools/screenres: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/arch/i386/tools/screenres -------------------------------------------------------------------------------- /nethunter-installer/update/data/app/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/data/app/.gitkeep -------------------------------------------------------------------------------- /nethunter-installer/update/data/local/app/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/data/local/app/.gitkeep -------------------------------------------------------------------------------- /nethunter-installer/update/data/local/placeholder: -------------------------------------------------------------------------------- 1 | # THIS IS OPTIONAL # 2 | 3 | # PLACE KALI CHROOT IN THIS FOLDER IF YOU WANT TO INSTALL IT DURING UPDATE PROCESS # 4 | # FILE SHOULD BE CALLED kalifs-full.tar.xz # 5 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/addon.d/80-nethunter.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | # 3 | # ADDOND_VERSION=2 4 | # 5 | # /system/addon.d/80-nethunter.sh 6 | # During a system upgrade, this script backs up NetHunterStore client and privext, 7 | # /system is formatted and reinstalled, then the files are restored. 8 | # 9 | 10 | . /tmp/backuptool.functions 11 | 12 | list_files() { 13 | cat < 12 | 13 | Permission is hereby granted, free of charge, to any person obtaining a copy 14 | of this software and associated documentation files (the "Software"), to deal 15 | in the Software without restriction, including without limitation the rights 16 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 17 | copies of the Software, and to permit persons to whom the Software is 18 | furnished to do so, subject to the following conditions: 19 | 20 | The above copyright notice and this permission notice shall be included in 21 | all copies or substantial portions of the Software. 22 | 23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 26 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 27 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 28 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 29 | SOFTWARE. 30 | ]]-- 31 | 32 | 33 | local function split(txt) 34 | local retval = {}; 35 | for i in string.gmatch(txt, "%S+") do 36 | table.insert(retval,i) 37 | end 38 | return retval 39 | end 40 | 41 | 42 | -- Description: getopt() translated from the BSD getopt(); compatible with the default Unix getopt() 43 | --[[ Example: 44 | for o, a in os.getopt(arg, 'a:b') do 45 | print(o, a) 46 | end 47 | ]]-- 48 | 49 | local function getopt(args, ostr) 50 | -- Modification to handle strings instead of tables: 51 | if type(args) == 'string' then 52 | args = split(args) 53 | end 54 | 55 | local arg, place = nil, 0; 56 | return function () 57 | if place == 0 then -- update scanning pointer 58 | place = 1 59 | if #args == 0 60 | or args[1]:sub(1, 1) ~= '-' then 61 | place = 0; return nil end 62 | if #args[1] >= 2 then 63 | place = place + 1 64 | if args[1]:sub(2, 2) == '-' then -- found "--" 65 | place = 0 66 | table.remove(args, 1); 67 | return nil; 68 | end 69 | end 70 | end 71 | local optopt = args[1]:sub(place, place); 72 | place = place + 1; 73 | local oli = ostr:find(optopt); 74 | if optopt == ':' or oli == nil then -- unknown option 75 | if optopt == '-' then return nil end 76 | if place > #args[1] then 77 | table.remove(args, 1); 78 | place = 0; 79 | end 80 | return '?'; 81 | end 82 | oli = oli + 1; 83 | if ostr:sub(oli, oli) ~= ':' then -- do not need argument 84 | arg = nil; 85 | if place > #args[1] then 86 | table.remove(args, 1); 87 | place = 0; 88 | end 89 | else -- need an argument 90 | if place <= #args[1] then -- no white space 91 | arg = args[1]:sub(place); 92 | else 93 | table.remove(args, 1); 94 | if #args == 0 then -- an option requiring argument is the last one 95 | place = 0; 96 | if ostr:sub(1, 1) == ':' then return ':' end 97 | return '?'; 98 | else arg = args[1] end 99 | end 100 | table.remove(args, 1); 101 | place = 0; 102 | end 103 | return optopt, arg; 104 | end 105 | end 106 | 107 | return { getopt = getopt } 108 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/lualibs/read14a.lua: -------------------------------------------------------------------------------- 1 | --[[ 2 | This is a library to read 14443a tags. It can be used something like this 3 | 4 | local reader = require('read14a') 5 | result, err = reader.read1443a() 6 | if not result then 7 | print(err) 8 | return 9 | end 10 | print(result.name) 11 | 12 | --]] 13 | -- Loads the commands-library 14 | local cmds = require('commands') 15 | local TIMEOUT = 2000 -- Shouldn't take longer than 2 seconds 16 | local ISO14A_COMMAND = { 17 | ISO14A_CONNECT = 1, 18 | ISO14A_NO_DISCONNECT = 2, 19 | ISO14A_APDU = 4, 20 | ISO14A_RAW = 8, 21 | ISO14A_REQUEST_TRIGGER = 0x10, 22 | ISO14A_APPEND_CRC = 0x20, 23 | ISO14A_SET_TIMEOUT = 0x40 24 | } 25 | 26 | local ISO14443a_TYPES = {} 27 | ISO14443a_TYPES[0x00] = "NXP MIFARE Ultralight | Ultralight C" 28 | ISO14443a_TYPES[0x01] = "NXP MIFARE TNP3xxx Activision Game Appliance" 29 | ISO14443a_TYPES[0x04] = "NXP MIFARE (various !DESFire !DESFire EV1)" 30 | ISO14443a_TYPES[0x08] = "NXP MIFARE CLASSIC 1k | Plus 2k" 31 | ISO14443a_TYPES[0x09] = "NXP MIFARE Mini 0.3k" 32 | ISO14443a_TYPES[0x10] = "NXP MIFARE Plus 2k" 33 | ISO14443a_TYPES[0x11] = "NXP MIFARE Plus 4k" 34 | ISO14443a_TYPES[0x18] = "NXP MIFARE Classic 4k | Plus 4k" 35 | ISO14443a_TYPES[0x20] = "NXP MIFARE DESFire 4k | DESFire EV1 2k/4k/8k | Plus 2k/4k | JCOP 31/41" 36 | ISO14443a_TYPES[0x24] = "NXP MIFARE DESFire | DESFire EV1" 37 | ISO14443a_TYPES[0x28] = "JCOP31 or JCOP41 v2.3.1" 38 | ISO14443a_TYPES[0x38] = "Nokia 6212 or 6131 MIFARE CLASSIC 4K" 39 | ISO14443a_TYPES[0x88] = "Infineon MIFARE CLASSIC 1K" 40 | ISO14443a_TYPES[0x98] = "Gemplus MPCOS" 41 | 42 | 43 | local function tostring_1443a(sak) 44 | return ISO14443a_TYPES[sak] or ("Unknown (SAK=%x)"):format(sak) 45 | end 46 | 47 | local function parse1443a(data) 48 | --[[ 49 | 50 | Based on this struct : 51 | 52 | typedef struct { 53 | byte_t uid[10]; 54 | byte_t uidlen; 55 | byte_t atqa[2]; 56 | byte_t sak; 57 | byte_t ats_len; 58 | byte_t ats[256]; 59 | } __attribute__((__packed__)) iso14a_card_select_t; 60 | 61 | --]] 62 | 63 | local count,uid,uidlen, atqa, sak, ats_len, ats= bin.unpack('H10CH2CC',data) 64 | uid = uid:sub(1,2*uidlen) 65 | --print("uid, atqa, sak: ",uid, atqa, sak) 66 | --print("TYPE: ", tostring_1443a(sak)) 67 | return { uid = uid, atqa = atqa, sak = sak, name = tostring_1443a(sak)} 68 | end 69 | 70 | --- Sends a USBpacket to the device 71 | -- @param command - the usb packet to send 72 | -- @param ignoreresponse - if set to true, we don't read the device answer packet 73 | -- which is usually recipe for fail. If not sent, the host will wait 2s for a 74 | -- response of type CMD_ACK 75 | -- @return packet,nil if successfull 76 | -- nil, errormessage if unsuccessfull 77 | 78 | local function sendToDevice(command, ignoreresponse) 79 | core.clearCommandBuffer() 80 | local err = core.SendCommand(command:getBytes()) 81 | if err then 82 | print(err) 83 | return nil, err 84 | end 85 | if ignoreresponse then return nil,nil end 86 | 87 | local response = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT) 88 | return response,nil 89 | end 90 | 91 | -- This function does a connect and retrieves som einfo 92 | -- @param dont_disconnect - if true, does not disable the field 93 | -- @return if successfull: an table containing card info 94 | -- @return if unsuccessfull : nil, error 95 | local function read14443a(dont_disconnect) 96 | local command, result, info, err, data 97 | 98 | command = Command:new{cmd = cmds.CMD_READER_ISO_14443a, 99 | arg1 = ISO14A_COMMAND.ISO14A_CONNECT} 100 | if dont_disconnect then 101 | command.arg1 = command.arg1 + ISO14A_COMMAND.ISO14A_NO_DISCONNECT 102 | end 103 | local result,err = sendToDevice(command) 104 | if result then 105 | local count,cmd,arg0,arg1,arg2 = bin.unpack('LLLL',result) 106 | if arg0 == 0 then 107 | return nil, "iso14443a card select failed" 108 | end 109 | data = string.sub(result,count) 110 | info, err = parse1443a(data) 111 | else 112 | err ="No response from card" 113 | end 114 | 115 | if err then 116 | print(err) 117 | return nil, err 118 | end 119 | return info 120 | end 121 | 122 | --- 123 | -- Waits for a mifare card to be placed within the vicinity of the reader. 124 | -- @return if successfull: an table containing card info 125 | -- @return if unsuccessfull : nil, error 126 | local function waitFor14443a() 127 | print("Waiting for card... press any key to quit") 128 | while not core.ukbhit() do 129 | res, err = read14443a() 130 | if res then return res end 131 | -- err means that there was no response from card 132 | end 133 | return nil, "Aborted by user" 134 | end 135 | local library = { 136 | 137 | read1443a = read14443a, 138 | read = read14443a, 139 | waitFor14443a = waitFor14443a, 140 | parse1443a = parse1443a, 141 | sendToDevice = sendToDevice, 142 | ISO14A_COMMAND = ISO14A_COMMAND, 143 | } 144 | 145 | return library -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/lualibs/taglib.lua: -------------------------------------------------------------------------------- 1 | local manufacturer = {} 2 | manufacturer[0x01]='Motorola [UK]' 3 | manufacturer[0x02]='STMicroelectronics SA [France]' 4 | manufacturer[0x03]='Hitachi, Ltd [Japan]' 5 | manufacturer[0x04]='NXP Semiconductors [Germany]' 6 | manufacturer[0x05]='Infineon Technologies AG [Germany]' 7 | manufacturer[0x06]='Cylink [USA]' 8 | manufacturer[0x07]='Texas Instrument [France]' 9 | manufacturer[0x08]='Fujitsu Limited [Japan]' 10 | manufacturer[0x09]='Matsushita Electronics Corporation, Semiconductor Company [Japan]' 11 | manufacturer[0x0A]='NEC [Japan]' 12 | manufacturer[0x0B]='Oki Electric Industry Co. Ltd [Japan]' 13 | manufacturer[0x0C]='Toshiba Corp. [Japan]' 14 | manufacturer[0x0D]='Mitsubishi Electric Corp. [Japan]' 15 | manufacturer[0x0E]='Samsung Electronics Co. Ltd [Korea]' 16 | manufacturer[0x0F]='Hynix [Korea]' 17 | manufacturer[0x10]='LG-Semiconductors Co. Ltd [Korea]' 18 | manufacturer[0x11]='Emosyn-EM Microelectronics [USA]' 19 | manufacturer[0x12]='INSIDE Technology [France]' 20 | manufacturer[0x13]='ORGA Kartensysteme GmbH [Germany]' 21 | manufacturer[0x14]='SHARP Corporation [Japan]' 22 | manufacturer[0x15]='ATMEL [France]' 23 | manufacturer[0x16]='EM Microelectronic-Marin SA [Switzerland]' 24 | manufacturer[0x17]='KSW Microtec GmbH [Germany]' 25 | manufacturer[0x18]='ZMD AG [Germany]' 26 | manufacturer[0x19]='XICOR, Inc. [USA]' 27 | manufacturer[0x1A]='Sony Corporation [Japan]' 28 | manufacturer[0x1B]='Malaysia Microelectronic Solutions Sdn. Bhd [Malaysia]' 29 | manufacturer[0x1C]='Emosyn [USA]' 30 | manufacturer[0x1D]='Shanghai Fudan Microelectronics Co. Ltd. P.R. [China]' 31 | manufacturer[0x1E]='Magellan Technology Pty Limited [Australia]' 32 | manufacturer[0x1F]='Melexis NV BO [Switzerland]' 33 | manufacturer[0x20]='Renesas Technology Corp. [Japan]' 34 | manufacturer[0x21]='TAGSYS [France]' 35 | manufacturer[0x22]='Transcore [USA]' 36 | manufacturer[0x23]='Shanghai belling corp., ltd. [China]' 37 | manufacturer[0x24]='Masktech Germany Gmbh [Germany]' 38 | manufacturer[0x25]='Innovision Research and Technology Plc [UK]' 39 | manufacturer[0x26]='Hitachi ULSI Systems Co., Ltd. [Japan]' 40 | manufacturer[0x27]='Cypak AB [Sweden]' 41 | manufacturer[0x28]='Ricoh [Japan]' 42 | manufacturer[0x29]='ASK [France]' 43 | manufacturer[0x2A]='Unicore Microsystems, LLC [RussianFederation]' 44 | manufacturer[0x2B]='Dallas Semiconductor/Maxim [USA]' 45 | manufacturer[0x2C]='Impinj, Inc. [USA]' 46 | manufacturer[0x2D]='RightPlug Alliance [USA]' 47 | manufacturer[0x2E]='Broadcom Corporation [USA]' 48 | manufacturer[0x2F]='MStar Semiconductor, Inc Taiwan, [ROC]' 49 | manufacturer[0x30]='BeeDar Technology Inc. [USA]' 50 | manufacturer[0x31]='RFIDsec [Denmark]' 51 | manufacturer[0x32]='Schweizer Electronic AG [Germany]' 52 | manufacturer[0x33]='AMIC Technology Corp [Taiwan]' 53 | manufacturer[0x34]='Mikron JSC [Russia]' 54 | manufacturer[0x35]='Fraunhofer Institute for Photonic Microsystems [Germany]' 55 | manufacturer[0x36]='IDS Microchip AG [Switzerland]' 56 | manufacturer[0x37]='Kovio [USA]' 57 | manufacturer[0x38]='HMT Microelectronic Ltd [Switzerland]' 58 | manufacturer[0x39]='Silicon Craft Technology [Thailand]' 59 | manufacturer[0x3A]='Advanced Film Device Inc. [Japan]' 60 | manufacturer[0x3B]='Nitecrest Ltd [UK]' 61 | manufacturer[0x3C]='Verayo Inc. [USA]' 62 | manufacturer[0x3D]='HID Global [USA]' 63 | manufacturer[0x3E]='Productivity Engineering Gmbh [Germany]' 64 | manufacturer[0x3F]='Austriamicrosystems AG (reserved) [Austria]' 65 | manufacturer[0x40]='Gemalto SA [France]' 66 | manufacturer[0x41]='Renesas Electronics Corporation [Japan]' 67 | manufacturer[0x42]='3Alogics Inc [Korea]' 68 | manufacturer[0x43]='Top TroniQ Asia Limited Hong [Kong]' 69 | manufacturer[0x44]='Gentag Inc (USA) [USA]' 70 | 71 | return { 72 | lookupManufacturer = function (value) 73 | if type(value) == 'string' then 74 | local v = tonumber(value, 16) 75 | print(string.format("WARNING: lookupManufacturer expects numeric value, converted %s into %x", value,v)) 76 | value = v 77 | end 78 | 79 | return manufacturer[value] or "no tag-info available" 80 | end, 81 | 82 | 83 | } -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/14araw.lua: -------------------------------------------------------------------------------- 1 | local cmds = require('commands') 2 | local getopt = require('getopt') 3 | local lib14a = require('read14a') 4 | 5 | example = "script run 14araw -x 6000F57b" 6 | author = "Martin Holst Swende" 7 | 8 | 9 | desc = 10 | [[ 11 | This is a script to allow raw 1444a commands to be sent and received. 12 | 13 | Arguments: 14 | -o do not connect - use this only if you previously used -p to stay connected 15 | -r do not read response 16 | -c calculate and append CRC 17 | -p stay connected - dont inactivate the field 18 | -x Data to send (NO SPACES!) 19 | -d Debug flag 20 | 21 | Examples : 22 | 23 | # 1. Connect and don't disconnect 24 | script run 14araw -p 25 | # 2. Send mf auth, read response (nonce) 26 | script run 14araw -o -x 6000F57b -p 27 | # 3. disconnect 28 | script run 14araw -o 29 | 30 | # All three steps in one go: 31 | script run 14araw -x 6000F57b 32 | ]] 33 | 34 | --[[ 35 | 36 | This script communicates with 37 | /armsrc/iso14443a.c, specifically ReaderIso14443a() at around line 1779 and onwards. 38 | 39 | Check there for details about data format and how commands are interpreted on the 40 | device-side. 41 | ]] 42 | 43 | -- Some globals 44 | local TIMEOUT = 2000 -- Shouldn't take longer than 2 seconds 45 | local DEBUG = false -- the debug flag 46 | 47 | ------------------------------- 48 | -- Some utilities 49 | ------------------------------- 50 | 51 | --- 52 | -- A debug printout-function 53 | function dbg(args) 54 | if DEBUG then 55 | print("###", args) 56 | end 57 | end 58 | --- 59 | -- This is only meant to be used when errors occur 60 | function oops(err) 61 | print("ERROR: ",err) 62 | end 63 | 64 | 65 | --- 66 | -- Usage help 67 | function help() 68 | print(desc) 69 | print("Example usage") 70 | print(example) 71 | end 72 | 73 | --- 74 | -- The main entry point 75 | function main(args) 76 | 77 | if args == nil or #args == 0 then 78 | return help() 79 | end 80 | 81 | local ignore_response = false 82 | local appendcrc = false 83 | local stayconnected = false 84 | local payload = nil 85 | local doconnect = true 86 | 87 | -- Read the parameters 88 | for o, a in getopt.getopt(args, 'corcpx:') do 89 | if o == "o" then doconnect = false end 90 | if o == "r" then ignore_response = true end 91 | if o == "c" then appendcrc = true end 92 | if o == "p" then stayconnected = true end 93 | if o == "x" then payload = a end 94 | if o == "d" then DEBUG = true end 95 | end 96 | 97 | -- First of all, connect 98 | if doconnect then 99 | dbg("doconnect") 100 | -- We reuse the connect functionality from a 101 | -- common library 102 | info, err = lib14a.read1443a(true) 103 | 104 | if err then return oops(err) end 105 | print(("Connected to card, uid = %s"):format(info.uid)) 106 | end 107 | 108 | -- The actual raw payload, if any 109 | if payload then 110 | res,err = sendRaw(payload,{ignore_response = ignore_response}) 111 | if err then return oops(err) end 112 | 113 | if not ignoreresponse then 114 | -- Display the returned data 115 | showdata(res) 116 | end 117 | end 118 | -- And, perhaps disconnect? 119 | if not stayconnected then 120 | disconnect() 121 | end 122 | end 123 | 124 | --- Picks out and displays the data read from a tag 125 | -- Specifically, takes a usb packet, converts to a Command 126 | -- (as in commands.lua), takes the data-array and 127 | -- reads the number of bytes specified in arg1 (arg0 in c-struct) 128 | -- and displays the data 129 | -- @param usbpacket the data received from the device 130 | function showdata(usbpacket) 131 | local cmd_response = Command.parse(usbpacket) 132 | local len = tonumber(cmd_response.arg1) *2 133 | --print("data length:",len) 134 | local data = string.sub(tostring(cmd_response.data), 0, len); 135 | print("<< ",data) 136 | --print("----------------") 137 | end 138 | 139 | 140 | 141 | function sendRaw(rawdata, options) 142 | print(">> ", rawdata) 143 | 144 | local flags = lib14a.ISO14A_COMMAND.ISO14A_NO_DISCONNECT + lib14a.ISO14A_COMMAND.ISO14A_RAW 145 | 146 | local command = Command:new{cmd = cmds.CMD_READER_ISO_14443a, 147 | arg1 = flags, -- Send raw 148 | -- arg2 contains the length, which is half the length 149 | -- of the ASCII-string rawdata 150 | arg2 = string.len(rawdata)/2, 151 | data = rawdata} 152 | return lib14a.sendToDevice(command, options.ignore_response) 153 | end 154 | 155 | -- Sends an instruction to do nothing, only disconnect 156 | function disconnect() 157 | 158 | local command = Command:new{cmd = cmds.CMD_READER_ISO_14443a, 159 | arg1 = 0, -- Nothing 160 | } 161 | -- We can ignore the response here, no ACK is returned for this command 162 | -- Check /armsrc/iso14443a.c, ReaderIso14443a() for details 163 | return lib14a.sendToDevice(command,true) 164 | end 165 | 166 | 167 | ------------------------- 168 | -- Testing 169 | ------------------------- 170 | function selftest() 171 | DEBUG = true 172 | dbg("Performing test") 173 | main() 174 | main("-p") 175 | main(" -o -x 6000F57b -p") 176 | main("-o") 177 | main("-x 6000F57b") 178 | dbg("Tests done") 179 | end 180 | -- Flip the switch here to perform a sanity check. 181 | -- It read a nonce in two different ways, as specified in the usage-section 182 | if "--test"==args then 183 | selftest() 184 | else 185 | -- Call the main 186 | main(args) 187 | end 188 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/cmdline.lua: -------------------------------------------------------------------------------- 1 | print("This is how a cmd-line interface could be implemented\nPrint 'exit' to exit.\n") 2 | local answer 3 | repeat 4 | io.write("$>") 5 | io.flush() 6 | answer=io.read() 7 | if answer ~= 'exit' then 8 | local func = assert(loadstring("return " .. answer)) 9 | io.write("\n"..tostring(func() or "").."\n"); 10 | end--]] 11 | until answer=="exit" 12 | print("Bye\n"); 13 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/dumptoemul.lua: -------------------------------------------------------------------------------- 1 | -- The getopt-functionality is loaded from pm3/getopt.lua 2 | -- Have a look there for further details 3 | getopt = require('getopt') 4 | bin = require('bin') 5 | 6 | example = "script run dumptoemul -i dumpdata-foobar.bin" 7 | author = "Martin Holst Swende" 8 | usage = "script run dumptoemul [-i ] [-o ]" 9 | desc =[[ 10 | This script takes a dumpfile from 'hf mf dump' and converts it to a format that can be used 11 | by the emulator 12 | 13 | Arguments: 14 | -h This help 15 | -i Specifies the dump-file (input). If omitted, 'dumpdata.bin' is used 16 | -o Specifies the output file. If omitted, .eml is used. 17 | 18 | ]] 19 | 20 | ------------------------------- 21 | -- Some utilities 22 | ------------------------------- 23 | 24 | --- 25 | -- A debug printout-function 26 | function dbg(args) 27 | if DEBUG then 28 | print("###", args) 29 | end 30 | end 31 | --- 32 | -- This is only meant to be used when errors occur 33 | function oops(err) 34 | print("ERROR: ",err) 35 | end 36 | 37 | 38 | --- 39 | -- Usage help 40 | function help() 41 | print(desc) 42 | print("Example usage") 43 | print(example) 44 | end 45 | 46 | local function convert_to_ascii(hexdata) 47 | if string.len(hexdata) % 32 ~= 0 then 48 | return oops(("Bad data, length should be a multiple of 32 (was %d)"):format(string.len(hexdata))) 49 | end 50 | 51 | local js,i = "["; 52 | for i = 1, string.len(hexdata),32 do 53 | js = js .."'" ..string.sub(hexdata,i,i+31).."',\n" 54 | end 55 | js = js .. "]" 56 | return js 57 | end 58 | 59 | local function readdump(infile) 60 | t = infile:read("*all") 61 | --print(string.len(t)) 62 | len = string.len(t) 63 | local len,hex = bin.unpack(("H%d"):format(len),t) 64 | --print(len,hex) 65 | return hex 66 | end 67 | 68 | local function convert_to_emulform(hexdata) 69 | if string.len(hexdata) % 32 ~= 0 then 70 | return oops(("Bad data, length should be a multiple of 32 (was %d)"):format(string.len(hexdata))) 71 | end 72 | local ascii,i = ""; 73 | for i = 1, string.len(hexdata),32 do 74 | ascii = ascii ..string.sub(hexdata,i,i+31).."\n" 75 | end 76 | return ascii 77 | end 78 | 79 | local function main(args) 80 | 81 | local input = "dumpdata.bin" 82 | local output 83 | 84 | for o, a in getopt.getopt(args, 'i:o:h') do 85 | if o == "h" then return help() end 86 | if o == "i" then input = a end 87 | if o == "o" then output = a end 88 | end 89 | -- Validate the parameters 90 | 91 | local infile = io.open(input, "rb") 92 | if infile == nil then 93 | return oops("Could not read file ", input) 94 | end 95 | local dumpdata = readdump(infile) 96 | -- The hex-data is now in ascii-format, 97 | 98 | -- But first, check the uid 99 | local uid = string.sub(dumpdata,1,8) 100 | output = output or (uid .. ".eml") 101 | 102 | -- Format some linebreaks 103 | dumpdata = convert_to_emulform(dumpdata) 104 | 105 | local outfile = io.open(output, "w") 106 | if outfile == nil then 107 | return oops("Could not write to file ", output) 108 | end 109 | 110 | outfile:write(dumpdata:lower()) 111 | io.close(outfile) 112 | print(("Wrote an emulator-dump to the file %s"):format(output)) 113 | end 114 | 115 | 116 | --[[ 117 | In the future, we may implement so that scripts are invoked directly 118 | into a 'main' function, instead of being executed blindly. For future 119 | compatibility, I have done so, but I invoke my main from here. 120 | --]] 121 | main(args) 122 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/emul2dump.lua: -------------------------------------------------------------------------------- 1 | local getopt = require('getopt') 2 | local bin = require('bin') 3 | local dumplib = require('html_dumplib') 4 | 5 | example =[[ 6 | 1. script run emul2dump 7 | 2. script run emul2dump -i myfile.eml 8 | 3. script run emul2dump -i myfile.eml -o myfile.bin 9 | ]] 10 | author = "Iceman" 11 | usage = "script run emul2dump [-i ] [-o ]" 12 | desc =[[ 13 | This script takes an dumpfile on EML (ASCII) format and converts it to the PM3 dumpbin file to be used with "hf mf restore" 14 | 15 | Arguments: 16 | -h This help 17 | -i Specifies the dump-file (input). If omitted, 'dumpdata.eml' is used 18 | -o Specifies the output file. If omitted, .bin is used. 19 | ]] 20 | 21 | --- 22 | -- This is only meant to be used when errors occur 23 | function oops(err) 24 | print("ERROR: ",err) 25 | end 26 | --- 27 | -- Usage help 28 | function help() 29 | print(desc) 30 | print("Example usage") 31 | print(example) 32 | end 33 | -- 34 | -- Exit message 35 | function ExitMsg(msg) 36 | print( string.rep('--',20) ) 37 | print( string.rep('--',20) ) 38 | print(msg) 39 | print() 40 | end 41 | 42 | local function main(args) 43 | 44 | local input = "dumpdata.eml" 45 | local output = os.date("%Y-%m-%d_%H%M%S.bin"); 46 | 47 | -- Arguments for the script 48 | for o, a in getopt.getopt(args, 'hi:o:') do 49 | if o == "h" then return help() end 50 | if o == "i" then input = a end 51 | if o == "o" then output = a end 52 | end 53 | 54 | local filename, err = dumplib.convert_eml_to_bin(input,output) 55 | if err then return oops(err) end 56 | 57 | ExitMsg(("Wrote a BIN dump to the file %s"):format(filename)) 58 | end 59 | 60 | main(args) -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/emul2html.lua: -------------------------------------------------------------------------------- 1 | -- The getopt-functionality is loaded from pm3/getopt.lua 2 | -- Have a look there for further details 3 | getopt = require('getopt') 4 | bin = require('bin') 5 | dumplib = require('html_dumplib') 6 | 7 | example = "script run emul2html -o dumpdata.eml " 8 | author = "Martin Holst Swende" 9 | usage = "script run htmldump [-i ] [-o ]" 10 | desc =[[ 11 | This script takes a dumpfile on EML (ASCII) format and produces a html based dump, which is a 12 | bit more easily analyzed. 13 | 14 | Arguments: 15 | -h This help 16 | -i Specifies the dump-file (input). If omitted, 'dumpdata.eml' is used 17 | -o Speciies the output file. If omitted, .html is used. 18 | 19 | ]] 20 | 21 | ------------------------------- 22 | -- Some utilities 23 | ------------------------------- 24 | 25 | --- 26 | -- A debug printout-function 27 | function dbg(args) 28 | if DEBUG then 29 | print("###", args) 30 | end 31 | end 32 | --- 33 | -- This is only meant to be used when errors occur 34 | function oops(err) 35 | print("ERROR: ",err) 36 | end 37 | 38 | 39 | --- 40 | -- Usage help 41 | function help() 42 | print(desc) 43 | print("Example usage") 44 | print(example) 45 | end 46 | 47 | local function main(args) 48 | 49 | local input = "dumpdata.eml" 50 | local output = os.date("%Y-%m-%d_%H%M%S.html"); 51 | for o, a in getopt.getopt(args, 'i:o:h') do 52 | if o == "h" then return help() end 53 | if o == "i" then input = a end 54 | if o == "o" then output = a end 55 | end 56 | local filename, err = dumplib.convert_eml_to_html(input,output) 57 | if err then return oops(err) end 58 | 59 | print(("Wrote a HTML dump to the file %s"):format(filename)) 60 | end 61 | 62 | --[[ 63 | In the future, we may implement so that scripts are invoked directly 64 | into a 'main' function, instead of being executed blindly. For future 65 | compatibility, I have done so, but I invoke my main from here. 66 | --]] 67 | main(args) -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/hf_read.lua: -------------------------------------------------------------------------------- 1 | local reader = require('hf_reader') 2 | 3 | local function main(args) 4 | print("WORK IN PROGRESS - not expected to be functional yet") 5 | info, err = reader.waitForTag() 6 | 7 | if err then 8 | print(err) 9 | return 10 | end 11 | local k,v 12 | print("Tag info") 13 | for k,v in pairs(info) do 14 | print(string.format(" %s : %s", tostring(k), tostring(v))) 15 | end 16 | return 17 | end 18 | main(args) -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/htmldump.lua: -------------------------------------------------------------------------------- 1 | -- The getopt-functionality is loaded from pm3/getopt.lua 2 | -- Have a look there for further details 3 | getopt = require('getopt') 4 | bin = require('bin') 5 | dumplib = require('html_dumplib') 6 | 7 | example = "script run htmldump -o mifarecard_foo.html" 8 | author = "Martin Holst Swende" 9 | usage = "script run htmldump [-i ] [-o ]" 10 | desc =[[ 11 | This script takes a dumpfile and produces a html based dump, which is a 12 | bit more easily analyzed. 13 | 14 | Arguments: 15 | -h This help 16 | -i Specifies the dump-file (input). If omitted, 'dumpdata.bin' is used 17 | -o Speciies the output file. If omitted, .html is used. 18 | 19 | ]] 20 | 21 | ------------------------------- 22 | -- Some utilities 23 | ------------------------------- 24 | 25 | --- 26 | -- A debug printout-function 27 | function dbg(args) 28 | if DEBUG then 29 | print("###", args) 30 | end 31 | end 32 | --- 33 | -- This is only meant to be used when errors occur 34 | function oops(err) 35 | print("ERROR: ",err) 36 | end 37 | 38 | 39 | --- 40 | -- Usage help 41 | function help() 42 | print(desc) 43 | print("Example usage") 44 | print(example) 45 | end 46 | 47 | local function main(args) 48 | 49 | local input = "dumpdata.bin" 50 | local output = os.date("%Y-%m-%d_%H%M%S.html"); 51 | for o, a in getopt.getopt(args, 'i:o:h') do 52 | if o == "h" then return help() end 53 | if o == "i" then input = a end 54 | if o == "o" then output = a end 55 | end 56 | local filename, err = dumplib.convert_bin_to_html(input,output,16) 57 | if err then return oops(err) end 58 | 59 | print(("Wrote a HTML dump to the file %s"):format(filename)) 60 | end 61 | 62 | --[[ 63 | In the future, we may implement so that scripts are invoked directly 64 | into a 'main' function, instead of being executed blindly. For future 65 | compatibility, I have done so, but I invoke my main from here. 66 | --]] 67 | main(args) -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/parameters.lua: -------------------------------------------------------------------------------- 1 | 2 | -- The getopt-functionality is loaded from pm3/getopt.lua 3 | -- Have a look there for further details 4 | getopt = require('getopt') 5 | 6 | usage = "script run parameters.lua -a 1 -blala -c -de" 7 | author = "Martin Holst Swende" 8 | desc =[[ 9 | This is an example script to demonstrate handle parameters in scripts. 10 | For more info, check the comments in the code 11 | ]] 12 | 13 | local function main(args) 14 | 15 | print(desc) 16 | print("These parameters were passed") 17 | --[[ 18 | When passing parameters, 19 | x: means that a value should follow x 20 | y means that 'y' is a flag, either on or off 21 | So, the string a:b:def means that we support up to 22 | 5 parameters; two with values and three flags. The following 23 | should be valid: 24 | 25 | script run parameters.lua -a 1 -blala -c -de 26 | 27 | Notice two things: 28 | 1. 'blala' works just like 'b lala', both set 'b' to 'lala' 29 | 2. Flags can be put together, '-de' is the same as '-d -e' 30 | 3. The format -b=lala is *not* supported 31 | 4. The format b lala (without -) is *not* supported 32 | --]] 33 | 34 | for o, a in getopt.getopt(args, 'a:b:ced') do 35 | print(o, a) 36 | end 37 | end 38 | 39 | 40 | --[[ 41 | In the future, we may implement so that scripts are invoked directly 42 | into a 'main' function, instead of being executed blindly. For future 43 | compatibility, I have done so, but I invoke my main from here. 44 | --]] 45 | main(args) -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/remagic.lua: -------------------------------------------------------------------------------- 1 | local getopt = require('getopt') 2 | 3 | example = "script run remagic" 4 | author = "Iceman" 5 | 6 | desc = 7 | [[ 8 | This is a script that tries to bring back a chinese magic card (1k generation1) 9 | from the dead when it's block 0 has been written with bad values. 10 | 11 | Arguments: 12 | -h this help 13 | ]] 14 | --- 15 | -- A debug printout-function 16 | function dbg(args) 17 | if DEBUG then 18 | print("###", args) 19 | end 20 | end 21 | --- 22 | -- This is only meant to be used when errors occur 23 | function oops(err) 24 | print("ERROR: ",err) 25 | end 26 | 27 | --- 28 | -- Usage help 29 | function help() 30 | print(desc) 31 | print("Example usage") 32 | print(example) 33 | end 34 | 35 | --- 36 | -- The main entry point 37 | function main(args) 38 | 39 | 40 | -- Read the parameters 41 | for o, a in getopt.getopt(args, 'h') do 42 | if o == "h" then help() return end 43 | end 44 | 45 | local _cmds = { 46 | --[[ 47 | --]] 48 | [0] = "hf 14a raw -p -a -b 7 40", 49 | [1] = "hf 14a raw -p -a 43", 50 | [2] = "hf 14a raw -c -p -a A000", 51 | [3] = "hf 14a raw -c -p -a 01 02 03 04 04 98 02 00 00 00 00 00 00 00 10 01", 52 | } 53 | core.clearCommandBuffer() 54 | 55 | local i 56 | --for _,c in pairs(_cmds) do 57 | for i = 0, 3 do 58 | print ( _cmds[i] ) 59 | core.console( _cmds[i] ) 60 | end 61 | end 62 | 63 | main(args) 64 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/test.lua: -------------------------------------------------------------------------------- 1 | local foo = "This shows how to use some standard libraries" 2 | print(foo) 3 | local answer 4 | repeat 5 | io.write("Continue with this operation (y/n)? ") 6 | io.flush() 7 | answer=io.read() 8 | until answer=="y" or answer=="n" 9 | local x = "Ok then, %s" 10 | print (x:format("whatever")) -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/test_t55x7_ask.lua: -------------------------------------------------------------------------------- 1 | local cmds = require('commands') 2 | local getopt = require('getopt') 3 | local bin = require('bin') 4 | local utils = require('utils') 5 | 6 | local format=string.format 7 | local floor=math.floor 8 | 9 | example =[[ 10 | 1. script run test_t55x7_ask 11 | ]] 12 | author = "Iceman" 13 | usage = "script run test_t55x7_ask" 14 | desc =[[ 15 | This script will program a T55x7 TAG with the configuration: block 0x00 data 0x000100 16 | The outlined procedure is as following: 17 | 18 | --ASK 19 | 00 00 80 40 20 | -- max 2 21 | -- manchester 22 | -- bit rate 23 | 24 | "lf t55xx write 0 00008040" 25 | "lf t55xx detect" 26 | "lf t55xx info" 27 | 28 | Loop: 29 | change the configuretion block 0 with: 30 | -xx 00 xxxx = RF/8 31 | -xx 04 xxxx = RF/16 32 | -xx 08 xxxx = RF/32 33 | -xx 0C xxxx = RF/40 34 | -xx 10 xxxx = RF/50 35 | -xx 14 xxxx = RF/64 36 | -xx 18 xxxx = RF/100 37 | -xx 1C xxxx = RF/128 38 | 39 | 40 | testsuit for the ASK/MANCHESTER demod 41 | 42 | Arguments: 43 | -h : this help 44 | ]] 45 | 46 | local TIMEOUT = 2000 -- Shouldn't take longer than 2 seconds 47 | local DEBUG = true -- the debug flag 48 | 49 | --BLOCK 0 = 00008040 ASK / MAN 50 | local config1 = '00' 51 | local config2 = '8040' 52 | 53 | local procedurecmds = { 54 | [1] = '%s%02X%s', 55 | [2] = 'lf t55xx detect', 56 | [3] = 'lf t55xx info', 57 | } 58 | --- 59 | -- A debug printout-function 60 | function dbg(args) 61 | if not DEBUG then 62 | return 63 | end 64 | 65 | if type(args) == "table" then 66 | local i = 1 67 | while args[i] do 68 | dbg(args[i]) 69 | i = i+1 70 | end 71 | else 72 | print("###", args) 73 | end 74 | end 75 | --- 76 | -- This is only meant to be used when errors occur 77 | function oops(err) 78 | print("ERROR: ",err) 79 | end 80 | --- 81 | -- Usage help 82 | function help() 83 | print(desc) 84 | print("Example usage") 85 | print(example) 86 | end 87 | -- 88 | -- Exit message 89 | function ExitMsg(msg) 90 | print( string.rep('--',20) ) 91 | print( string.rep('--',20) ) 92 | print(msg) 93 | print() 94 | end 95 | 96 | function test() 97 | local y 98 | for y = 0x0, 0x1d, 0x4 do 99 | for _ = 1, #procedurecmds do 100 | local pcmd = procedurecmds[_] 101 | 102 | if #pcmd == 0 then 103 | 104 | elseif _ == 1 then 105 | 106 | local config = pcmd:format(config1, y, config2) 107 | dbg(('lf t55xx write 0 %s'):format(config)) 108 | config = tonumber(config,16) 109 | 110 | local writecmd = Command:new{cmd = cmds.CMD_T55XX_WRITE_BLOCK, arg1 = config} 111 | local err = core.SendCommand(writecmd:getBytes()) 112 | if err then return oops(err) end 113 | local response = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT) 114 | 115 | else 116 | dbg(pcmd) 117 | core.console( pcmd ) 118 | end 119 | end 120 | core.clearCommandBuffer() 121 | end 122 | print( string.rep('--',20) ) 123 | end 124 | 125 | local function main(args) 126 | 127 | print( string.rep('--',20) ) 128 | print( string.rep('--',20) ) 129 | 130 | -- Arguments for the script 131 | for o, arg in getopt.getopt(args, 'h') do 132 | if o == "h" then return help() end 133 | end 134 | 135 | core.clearCommandBuffer() 136 | test() 137 | print( string.rep('--',20) ) 138 | end 139 | main(args) -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/test_t55x7_bi.lua: -------------------------------------------------------------------------------- 1 | local cmds = require('commands') 2 | local getopt = require('getopt') 3 | local bin = require('bin') 4 | local utils = require('utils') 5 | 6 | example =[[ 7 | 1. script run test_t55x7_bi 8 | ]] 9 | author = "Iceman" 10 | usage = "script run test_t55x7_bi" 11 | desc =[[ 12 | This script will program a T55x7 TAG with the configuration: block 0x00 data 0x00010040 13 | The outlined procedure is as following: 14 | 15 | --BIPHASE 00010040 16 | -- 17 | 18 | "lf t55xx write 0 00010040" 19 | "lf t55xx detect" 20 | "lf t55xx info" 21 | 22 | Loop: 23 | change the configuretion block 0 with: 24 | -xx01xxxx = RF/8 25 | -xx05xxxx = RF/16 26 | -xx09xxxx = RF/32 27 | -xx0Dxxxx = RF/40 28 | -xx11xxxx = RF/50 29 | -xx15xxxx = RF/64 30 | -xx19xxxx = RF/100 31 | -xx1Dxxxx = RF/128 32 | 33 | 34 | testsuit for the BIPHASE demod 35 | 36 | Arguments: 37 | -h : this help 38 | ]] 39 | 40 | local TIMEOUT = 2000 -- Shouldn't take longer than 2 seconds 41 | local DEBUG = true -- the debug flag 42 | 43 | --BLOCK 0 = 00010040 BIPHASE 44 | local config1 = '00' 45 | local config2 = '0040' 46 | 47 | local procedurecmds = { 48 | [1] = '%s%02X%s', 49 | [2] = 'lf t55xx detect', 50 | [3] = 'lf t55xx info', 51 | } 52 | --- 53 | -- A debug printout-function 54 | function dbg(args) 55 | if not DEBUG then 56 | return 57 | end 58 | 59 | if type(args) == "table" then 60 | local i = 1 61 | while args[i] do 62 | dbg(args[i]) 63 | i = i+1 64 | end 65 | else 66 | print("###", args) 67 | end 68 | end 69 | --- 70 | -- This is only meant to be used when errors occur 71 | function oops(err) 72 | print("ERROR: ",err) 73 | end 74 | --- 75 | -- Usage help 76 | function help() 77 | print(desc) 78 | print("Example usage") 79 | print(example) 80 | end 81 | -- 82 | -- Exit message 83 | function ExitMsg(msg) 84 | print( string.rep('--',20) ) 85 | print( string.rep('--',20) ) 86 | print(msg) 87 | print() 88 | end 89 | 90 | function test() 91 | local y 92 | for y = 1, 0x1D, 4 do 93 | for _ = 1, #procedurecmds do 94 | local pcmd = procedurecmds[_] 95 | 96 | if #pcmd == 0 then 97 | 98 | elseif _ == 1 then 99 | 100 | local config = pcmd:format(config1, y, config2) 101 | dbg(('lf t55xx wr 0 %s'):format(config)) 102 | 103 | config = tonumber(config,16) 104 | local writecmd = Command:new{cmd = cmds.CMD_T55XX_WRITE_BLOCK, arg1 = config} 105 | local err = core.SendCommand(writecmd:getBytes()) 106 | if err then return oops(err) end 107 | local response = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT) 108 | else 109 | dbg(pcmd) 110 | core.console( pcmd ) 111 | end 112 | end 113 | core.clearCommandBuffer() 114 | end 115 | print( string.rep('--',20) ) 116 | 117 | end 118 | 119 | local function main(args) 120 | 121 | print( string.rep('--',20) ) 122 | print( string.rep('--',20) ) 123 | 124 | -- Arguments for the script 125 | for o, arg in getopt.getopt(args, 'h') do 126 | if o == "h" then return help() end 127 | end 128 | 129 | core.clearCommandBuffer() 130 | test() 131 | print( string.rep('--',20) ) 132 | end 133 | main(args) 134 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/test_t55x7_fsk.lua: -------------------------------------------------------------------------------- 1 | local cmds = require('commands') 2 | local getopt = require('getopt') 3 | local bin = require('bin') 4 | local utils = require('utils') 5 | 6 | example =[[ 7 | 1. script run test_t55x7_fsk 8 | ]] 9 | author = "Iceman" 10 | usage = "script run test_t55x7_fsk" 11 | desc =[[ 12 | This script will program a T55x7 TAG with the configuration: block 0x00 data 0x000100 13 | The outlined procedure is as following: 14 | 15 | --ASK 16 | 00 00 80 40 17 | -- max 2 blocks 18 | -- FSK1 19 | -- bit rate 20 | 21 | "lf t55xx write 0 00007040" 22 | "lf t55xx detect" 23 | "lf t55xx info" 24 | 25 | Loop: 26 | change the configuretion block 0 with: 27 | -xx 00 xxxx = RF/8 28 | -xx 04 xxxx = RF/16 29 | -xx 08 xxxx = RF/32 30 | -xx 0C xxxx = RF/40 31 | -xx 10 xxxx = RF/50 32 | -xx 14 xxxx = RF/64 33 | -xx 18 xxxx = RF/100 34 | -xx 1C xxxx = RF/128 35 | 36 | 37 | testsuit for the ASK/MANCHESTER demod 38 | 39 | Arguments: 40 | -h : this help 41 | ]] 42 | 43 | local TIMEOUT = 2000 -- Shouldn't take longer than 2 seconds 44 | local DEBUG = true -- the debug flag 45 | 46 | --BLOCK 0 = 00008040 FSK 47 | local config1 = '00' 48 | local config2 = '040' 49 | 50 | local procedurecmds = { 51 | [1] = '%s%02X%X%s', 52 | [2] = 'lf t55xx detect', 53 | [3] = 'lf t55xx info', 54 | } 55 | --- 56 | -- A debug printout-function 57 | function dbg(args) 58 | if not DEBUG then 59 | return 60 | end 61 | 62 | if type(args) == "table" then 63 | local i = 1 64 | while args[i] do 65 | dbg(args[i]) 66 | i = i+1 67 | end 68 | else 69 | print("###", args) 70 | end 71 | end 72 | --- 73 | -- This is only meant to be used when errors occur 74 | function oops(err) 75 | print("ERROR: ",err) 76 | end 77 | --- 78 | -- Usage help 79 | function help() 80 | print(desc) 81 | print("Example usage") 82 | print(example) 83 | end 84 | -- 85 | -- Exit message 86 | function ExitMsg(msg) 87 | print( string.rep('--',20) ) 88 | print( string.rep('--',20) ) 89 | print(msg) 90 | print() 91 | end 92 | 93 | function test(modulation) 94 | local y 95 | for y = 0x0, 0x1d, 0x4 do 96 | for _ = 1, #procedurecmds do 97 | local pcmd = procedurecmds[_] 98 | 99 | if #pcmd == 0 then 100 | 101 | elseif _ == 1 then 102 | 103 | local config = pcmd:format(config1, y, modulation, config2) 104 | dbg(('lf t55xx write 0 %s'):format(config)) 105 | 106 | config = tonumber(config,16) 107 | local writecmd = Command:new{cmd = cmds.CMD_T55XX_WRITE_BLOCK, arg1 = config} 108 | local err = core.SendCommand(writecmd:getBytes()) 109 | if err then return oops(err) end 110 | local response = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT) 111 | 112 | else 113 | dbg(pcmd) 114 | core.console( pcmd ) 115 | end 116 | end 117 | core.clearCommandBuffer() 118 | end 119 | print( string.rep('--',20) ) 120 | end 121 | 122 | local function main(args) 123 | 124 | print( string.rep('--',20) ) 125 | print( string.rep('--',20) ) 126 | 127 | -- Arguments for the script 128 | for o, arg in getopt.getopt(args, 'h') do 129 | if o == "h" then return help() end 130 | end 131 | 132 | core.clearCommandBuffer() 133 | test(4) 134 | test(5) 135 | test(6) 136 | test(7) 137 | print( string.rep('--',20) ) 138 | end 139 | main(args) -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/test_t55x7_psk.lua: -------------------------------------------------------------------------------- 1 | local cmds = require('commands') 2 | local getopt = require('getopt') 3 | local bin = require('bin') 4 | local utils = require('utils') 5 | 6 | example =[[ 7 | 1. script run test_t55x7_psk 8 | 2. script run test_t55x7_psk -o 9 | 10 | ]] 11 | author = "Iceman" 12 | usage = "script run test_t55x7_psk" 13 | desc =[[ 14 | This script will program a T55x7 TAG with the configuration: block 0x00 data 0x00088040 15 | The outlined procedure is as following: 16 | 17 | "lf t55xx write 0 00088040" 18 | "lf read" 19 | "data samples" 20 | "data pskdet" 21 | "data psknrz" 22 | "data pskindala" 23 | "data psknrzraw" 24 | 25 | Loop OUTER: 26 | change the configuretion block 0 with: 27 | -xxxx8xxx = PSK RF/2 with Manchester modulation 28 | -xxxx1xxx = PSK RF/2 with PSK1 modulation (phase change when input changes) 29 | -xxxx2xxx = PSK RF/2 with PSk2 modulation (phase change on bitclk if input high) 30 | -xxxx3xxx = PSK RF/2 with PSk3 modulation (phase change on rising edge of input) 31 | Loop INNER 32 | for each outer configuration, also do 33 | XXXXX0XX = PSK RF/2 34 | XXXXX4XX = PSK RF/4 35 | XXXXX8XX = PSK RF/8 36 | 37 | In all 12 individual test for the PSK demod 38 | 39 | Arguments: 40 | -h : this help 41 | ]] 42 | 43 | local TIMEOUT = 2000 -- Shouldn't take longer than 2 seconds 44 | local DEBUG = true -- the debug flag 45 | 46 | 47 | -- local procedurecmds = { 48 | -- [1] = '%s%s%s%s', 49 | -- [2] = 'lf read', 50 | -- --[3] = '', 51 | -- [3] = 'data samples', 52 | -- [4] = 'data pskdetectclock', 53 | -- [5] = 'data psknrzrawdemod', 54 | -- [6] = 'data pskindalademod', 55 | -- } 56 | 57 | -- --BLOCK 0 = 00 08 80 40 PSK 58 | -- ----------- 59 | -- 08------- bitrate 60 | -- 8----- modulation PSK1 61 | -- 0---- PSK ClockRate 62 | -- 40 max 2 blocks 63 | 64 | local procedurecmds = { 65 | [1] = '00%02X%X%X40', 66 | [2] = 'lf t55xx detect', 67 | --[3] = '', 68 | [3] = 'lf t55xx info', 69 | } 70 | --- 71 | -- A debug printout-function 72 | function dbg(args) 73 | if not DEBUG then 74 | return 75 | end 76 | 77 | if type(args) == "table" then 78 | local i = 1 79 | while args[i] do 80 | dbg(args[i]) 81 | i = i+1 82 | end 83 | else 84 | print("###", args) 85 | end 86 | end 87 | --- 88 | -- This is only meant to be used when errors occur 89 | function oops(err) 90 | print("ERROR: ",err) 91 | end 92 | --- 93 | -- Usage help 94 | function help() 95 | print(desc) 96 | print("Example usage") 97 | print(example) 98 | end 99 | -- 100 | -- Exit message 101 | function ExitMsg(msg) 102 | print( string.rep('--',20) ) 103 | print( string.rep('--',20) ) 104 | print(msg) 105 | print() 106 | end 107 | 108 | function test(modulation) 109 | local bitrate 110 | local clockrate 111 | for bitrate = 0x0, 0x1d, 0x4 do 112 | 113 | for clockrate = 0,8,4 do 114 | 115 | for _ = 1, #procedurecmds do 116 | local cmd = procedurecmds[_] 117 | 118 | if #cmd == 0 then 119 | 120 | elseif _ == 1 then 121 | 122 | dbg("Writing to T55x7 TAG") 123 | 124 | local config = cmd:format(bitrate, modulation, clockrate) 125 | dbg(('lf t55xx write 0 %s'):format(config)) 126 | 127 | config = tonumber(config,16) 128 | local writecommand = Command:new{cmd = cmds.CMD_T55XX_WRITE_BLOCK, arg1 = config ,arg2 = 0, arg3 = 0} 129 | local err = core.SendCommand(writecommand:getBytes()) 130 | if err then return oops(err) end 131 | local response = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT) 132 | else 133 | dbg(cmd) 134 | core.console( cmd ) 135 | end 136 | end 137 | core.clearCommandBuffer() 138 | end 139 | end 140 | print( string.rep('--',20) ) 141 | end 142 | 143 | local function main(args) 144 | 145 | print( string.rep('--',20) ) 146 | print( string.rep('--',20) ) 147 | 148 | -- Arguments for the script 149 | for o, arg in getopt.getopt(args, 'h') do 150 | if o == "h" then return help() end 151 | end 152 | 153 | core.clearCommandBuffer() 154 | 155 | test(1) -- PSK1 156 | --test(2) -- PSK2 157 | --test(3) -- PSK3 158 | 159 | print( string.rep('--',20) ) 160 | end 161 | main(args) 162 | 163 | -- Where it iterates over 164 | -- xxxx8xxx = PSK RF/2 with Manchester modulation 165 | -- xxxx1xxx = PSK RF/2 with PSK1 modulation (phase change when input changes) 166 | -- xxxx2xxx = PSK RF/2 with PSk2 modulation (phase change on bitclk if input high) 167 | -- xxxx3xxx = PSK RF/2 with PSk3 modulation (phase change on rising edge of input) 168 | 169 | -- XXXXX0XX = PSK RF/2 170 | -- XXXXX4XX = PSK RF/4 171 | -- XXXXX8XX = PSK RF/8 172 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/tracetest.lua: -------------------------------------------------------------------------------- 1 | local cmds = require('commands') 2 | local getopt = require('getopt') 3 | local bin = require('bin') 4 | local utils = require('utils') 5 | local dumplib = require('html_dumplib') 6 | 7 | example =[[ 8 | 1. script run tracetest 9 | ]] 10 | author = "Iceman" 11 | usage = "script run tracetest" 12 | desc =[[ 13 | This script will load several traces files in ../traces/ folder and do 14 | "data load" 15 | "lf search 1 u" 16 | 17 | The following tracefiles will be loaded: 18 | em*.pm3 19 | m*.pm3 20 | 21 | Arguments: 22 | -h : this help 23 | ]] 24 | 25 | local TIMEOUT = 2000 -- Shouldn't take longer than 2 seconds 26 | local DEBUG = true -- the debug flag 27 | --- 28 | -- A debug printout-function 29 | function dbg(args) 30 | if not DEBUG then 31 | return 32 | end 33 | 34 | if type(args) == "table" then 35 | local i = 1 36 | while result[i] do 37 | dbg(result[i]) 38 | i = i+1 39 | end 40 | else 41 | print("###", args) 42 | end 43 | end 44 | --- 45 | -- This is only meant to be used when errors occur 46 | function oops(err) 47 | print("ERROR: ",err) 48 | end 49 | --- 50 | -- Usage help 51 | function help() 52 | print(desc) 53 | print("Example usage") 54 | print(example) 55 | end 56 | -- 57 | -- Exit message 58 | function ExitMsg(msg) 59 | print( string.rep('--',20) ) 60 | print( string.rep('--',20) ) 61 | print(msg) 62 | print() 63 | end 64 | 65 | 66 | local function main(args) 67 | 68 | print( string.rep('--',20) ) 69 | print( string.rep('--',20) ) 70 | 71 | local cmdDataLoad = 'data load %s'; 72 | local tracesEM = "find '../traces/' -iname 'em*.pm3' -type f" 73 | local tracesMOD = "find '../traces/' -iname 'm*.pm3' -type f" 74 | 75 | local write2File = false 76 | local outputTemplate = os.date("testtest_%Y-%m-%d_%H%M%S") 77 | 78 | -- Arguments for the script 79 | for o, arg in getopt.getopt(args, 'h') do 80 | if o == "h" then return help() end 81 | end 82 | 83 | core.clearCommandBuffer() 84 | 85 | local files = {} 86 | 87 | -- Find a set of traces staring with EM 88 | local p = assert( io.popen(tracesEM)) 89 | for file in p:lines() do 90 | table.insert(files, file) 91 | end 92 | p.close(); 93 | 94 | -- Find a set of traces staring with MOD 95 | p = assert( io.popen(tracesMOD) ) 96 | for file in p:lines() do 97 | table.insert(files, file) 98 | end 99 | p.close(); 100 | 101 | local cmdLFSEARCH = "lf search 1 u" 102 | 103 | -- main loop 104 | io.write('Starting to test traces > ') 105 | for _,file in pairs(files) do 106 | 107 | local x = "data load "..file 108 | dbg(x) 109 | core.console(x) 110 | 111 | dbg(cmdLFSEARCH) 112 | core.console(cmdLFSEARCH) 113 | 114 | core.clearCommandBuffer() 115 | 116 | if core.ukbhit() then 117 | print("aborted by user") 118 | break 119 | end 120 | end 121 | io.write('\n') 122 | 123 | print( string.rep('--',20) ) 124 | 125 | end 126 | main(args) -------------------------------------------------------------------------------- /nethunter-installer/update/system/bin/scripts/writeraw.lua: -------------------------------------------------------------------------------- 1 | local cmds = require('commands') 2 | local desc = 3 | [[ 4 | 5 | This script is a work in progress, not yet functional. It is an attempt to use the raw-writing 6 | capabilities already present within the devices 7 | 8 | ]] 9 | 10 | print(desc) 11 | 12 | -- Some raw data 13 | local rawdata = "6000F57b" --mf_auth 14 | local TIMEOUT = 2000 -- Shouldn't take longer than 2 seconds 15 | 16 | function show(usbpacket) 17 | if usbpacket then 18 | local response = Command.parse(usbpacket) 19 | print(response) 20 | end 21 | end 22 | 23 | -- Want to do both connect and send raw, so we should AND the two commands 24 | -- ISO14A_COMMAND.ISO14A_RAW(8) and ISO14A_CONNECT (1). However, we don't have a 25 | -- bitlib yet, so we'll do it manually, 1 & 8 == 9 26 | -- ISO14A_NO_DISCONNECT = 2 ==> 11 27 | 28 | print(string.len(rawdata)) 29 | local command = Command:new{cmd = cmds.CMD_READER_ISO_14443a, 30 | arg1 = 3, -- Connect (1) and don't disconnect (2) 31 | arg2 = 0 32 | } 33 | local mf_auth = Command:new{cmd = cmds.CMD_READER_ISO_14443a, 34 | arg1 = 10, -- Send raw 35 | -- arg2 contains the length. 36 | -- Remember; rawdata is an ascii string containing 37 | -- ASCII characters. Thus; rawdata= "FF" are two bytes in length 38 | -- but when converted to true hexvalues internally inside the Command 39 | -- constructor, 0xFF is only one byte. So, the bytelength is the 40 | -- length of the ASCII-string divided by two. Thanks jonor! 41 | 42 | arg2 = string.len(rawdata)/2, 43 | data = rawdata} 44 | local quit = Command:new{cmd = cmds.CMD_READER_ISO_14443a, 45 | arg1 = 0, -- Nothing 46 | } 47 | 48 | core.clearCommandBuffer() 49 | --print("Sending") 50 | --print(command) 51 | local err = core.SendCommand(command:getBytes()) 52 | if err then 53 | print(err) 54 | return nil, err 55 | end 56 | local cardselect = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT) 57 | print("Card select:") 58 | show(cardselect) 59 | --local response = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT) 60 | --print("Raw response:") 61 | --show(response) 62 | 63 | local answer = "" 64 | while answer ~='q' do 65 | 66 | local err = core.SendCommand(mf_auth:getBytes()) 67 | if err then 68 | print(err) 69 | return nil, err 70 | end 71 | local nonce = core.WaitForResponseTimeout(cmds.CMD_ACK,TIMEOUT) 72 | print("Nonce:") 73 | show(nonce) 74 | io.write("Write q to quit, hit any char to get a nonce ") 75 | io.flush() 76 | answer=io.read(1) 77 | 78 | end--]] 79 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/init.d/90userinit: -------------------------------------------------------------------------------- 1 | #!/system/bin/sh 2 | # call userinit.sh and/or userinit.d/* scripts if present in /data/local 3 | 4 | if [ -e /data/local/userinit.sh ]; then 5 | log -p i -t userinit "Executing /data/local/userinit.sh" 6 | logwrapper /system/bin/sh /data/local/userinit.sh 7 | setprop cm.userinit.active 1 8 | fi 9 | 10 | if [ -d /data/local/userinit.d ]; then 11 | logwrapper /system/xbin/busybox_nh run-parts /data/local/userinit.d 12 | setprop cm.userinit.active 1 13 | fi 14 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/asm.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for assembler. 2 | ## 3 | syntax "asm" "\.(S|s|asm)$" 4 | color red "\<[A-Z_]{2,}\>" 5 | color brightgreen "\.(data|subsection|text)" 6 | color green "\.(align|file|globl|global|hidden|section|size|type|weak)" 7 | color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)" 8 | icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" 9 | color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" 10 | ## Highlight strings (note: VERY resource intensive) 11 | color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" 12 | color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" 13 | ## Highlight comments 14 | color brightblue "//.*" 15 | color brightblue start="/\*" end="\*/" 16 | ## Highlight trailing whitespace 17 | color ,green "[[:space:]]+$" 18 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/awk.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for awk. 2 | ## 3 | syntax "awk" "\.awk$" 4 | ## records 5 | icolor brightred "\$[0-9A-Z_!@#$*?-]+" 6 | ## awk-set variables 7 | color red "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>" 8 | color red "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>" 9 | color red "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>" 10 | ## function declarations and special patterns 11 | color brightgreen "\<(function|extension|BEGIN|END)\>" 12 | ## operators 13 | color green "(\{|\}|\(|\)|\;|\]|\[|\\|<|>|!|=|&|\+|-|\*|%|/|\?:|\^|\|)" 14 | ## flow control 15 | color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>" 16 | color brightyellow "\<(break|continue|return)\>" 17 | ## I/O statements 18 | color brightgreen "\<(close|getline|next|nextfile|print|printf)\>" 19 | color brightgreen "\<(system|fflush)\>" 20 | ## standard functions 21 | color magenta "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>" 22 | color magenta "\<(asort|asorti|gensub|gsub|index|length|match)\>" 23 | color magenta "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>" 24 | color magenta "\<(mktime|strftime|systime)\>" 25 | color magenta "\<(and|compl|lshift|or|rshift|xor)\>" 26 | color magenta "\<(bindtextdomain|dcgettext|dcngettext)\>" 27 | 28 | ## 29 | ## String highlighting. You will in general want your comments and 30 | ## strings to come last, because syntax highlighting rules will be 31 | ## applied in the order they are read in. 32 | color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" 33 | 34 | ## Comment highlighting 35 | color brightblue "(^|[[:space:]])#.*$" 36 | 37 | ## Trailing whitespace 38 | color ,green "[[:space:]]+$" 39 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/c.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for C/C++. 2 | ## 3 | syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" 4 | color brightred "\<[A-Z_][0-9A-Z_]+\>" 5 | color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" 6 | color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" 7 | color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" 8 | color brightyellow "\<(for|if|while|do|else|case|default|switch)\>" 9 | color brightyellow "\<(try|throw|catch|operator|new|delete)\>" 10 | color magenta "\<(goto|continue|break|return)\>" 11 | color brightcyan "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)" 12 | color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" 13 | ## 14 | ## GCC builtins 15 | color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" 16 | ## 17 | ## String highlighting. You will in general want your comments and 18 | ## strings to come last, because syntax highlighting rules will be 19 | ## applied in the order they are read in. 20 | color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" 21 | ## 22 | ## This string is VERY resource intensive! 23 | color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" 24 | 25 | ## Comment highlighting 26 | color brightblue "//.*" 27 | color brightblue start="/\*" end="\*/" 28 | 29 | ## Trailing whitespace 30 | color ,green "[[:space:]]+$" 31 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/cmake.nanorc: -------------------------------------------------------------------------------- 1 | ## CMake syntax highlighter for GNU Nano 2 | ## 3 | syntax "cmake" "(CMakeLists\.txt|\.cmake)$" 4 | 5 | icolor green "^[[:space:]]*[A-Z0-9_]+" 6 | icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>" 7 | 8 | icolor brightgreen "^[[:space:]]*\<((else|end)?if|else|(end)?while|(end)?foreach|break)\>" 9 | color brightgreen "\<(NOT|COMMAND|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)\>[[:space:]]" 10 | color brightgreen "[[:space:]]\<(OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))\>[[:space:]]" 11 | 12 | icolor brightred "^[[:space:]]*\<((end)?(function|macro)|return)" 13 | 14 | icolor cyan start="\$(\{|ENV\{)" end="\}" 15 | color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>" 16 | 17 | icolor brightblue "^([[:space:]]*)?#.*" 18 | icolor brightblue "[[:space:]]#.*" 19 | color ,green "[[:space:]]+$" 20 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/css.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for css files. 2 | ## 3 | syntax "css" "\.css$" 4 | color brightred "." 5 | color brightyellow start="\{" end="\}" 6 | color brightwhite start=":" end="([;^\{]|$)" 7 | color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" 8 | color brightblue start="\/\*" end="\\*/" 9 | color green ";|:|\{|\}" 10 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/fortran.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for Fortran 90/95 2 | 3 | syntax "fortran" "\.(f|f90|f95)$" 4 | 5 | #color red "\<[A-Z_]a[0-9A-Z_]+\>" 6 | color red "\<[0-9]+\>" 7 | 8 | icolor green "\<(action|advance|all|allocatable|allocated|any|apostrophe)\>" 9 | icolor green "\<(append|asis|assign|assignment|associated|character|common)\>" 10 | icolor green "\<(complex|data|default|delim|dimension|double precision)\>" 11 | icolor green "\<(elemental|epsilon|external|file|fmt|form|format|huge)\>" 12 | icolor green "\<(implicit|include|index|inquire|integer|intent|interface)\>" 13 | icolor green "\<(intrinsic|iostat|kind|logical|module|none|null|only)>" 14 | icolor green "\<(operator|optional|pack|parameter|pointer|position|private)\>" 15 | icolor green "\<(program|public|real|recl|recursive|selected_int_kind)\>" 16 | icolor green "\<(selected_real_kind|subroutine|status)\>" 17 | 18 | icolor cyan "\<(abs|achar|adjustl|adjustr|allocate|bit_size|call|char)\>" 19 | icolor cyan "\<(close|contains|count|cpu_time|cshift|date_and_time)\>" 20 | icolor cyan "\<(deallocate|digits|dot_product|eor|eoshift|function|iachar)\>" 21 | icolor cyan "\<(iand|ibclr|ibits|ibset|ichar|ieor|iolength|ior|ishft|ishftc)\>" 22 | icolor cyan "\<(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\>" 23 | icolor cyan "\<(minexponent|minloc|minval|mvbits|namelist|nearest|nullify)\>" 24 | icolor cyan "\<(open|pad|present|print|product|pure|quote|radix)\>" 25 | icolor cyan "\<(random_number|random_seed|range|read|readwrite|replace)\>" 26 | icolor cyan "\<(reshape|rewind|save|scan|sequence|shape|sign|size|spacing)\>" 27 | icolor cyan "\<(spread|sum|system_clock|target|transfer|transpose|trim)\>" 28 | icolor cyan "\<(ubound|unpack|verify|write|tiny|type|use|yes)\>" 29 | 30 | icolor yellow "\<(.and.|case|do|else|else?if|else?where|end|end?do|end?if)\>" 31 | icolor yellow "\<(end?select|.eqv.|forall|if|lge|lgt|lle|llt|.neqv.|.not.)\>" 32 | icolor yellow "\<(.or.|repeat|select case|then|where|while)\>" 33 | 34 | icolor magenta "\<(continue|cycle|exit|go?to|result|return)\>" 35 | 36 | ## String highlighting. 37 | icolor yellow "<[^= ]*>" ""(\\.|[^"])*"" 38 | 39 | ## Comment highlighting 40 | icolor blue "!.*" 41 | 42 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/groff.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for groff. 2 | ## 3 | syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." 4 | ## The argument of .ds or .nr 5 | color cyan "^\.(ds|nr) [^[[:space:]]]*" 6 | ## Single character escapes 7 | color brightmagenta "\\." 8 | ## Highlight the argument of \f or \s in the same color 9 | color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" 10 | ## Newlines 11 | color cyan "(\\|\\\\)n(.|\(..)" 12 | color cyan start="(\\|\\\\)n\[" end="]" 13 | ## Requests 14 | color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" 15 | ## Comments 16 | color yellow "^\.\\".*$" 17 | ## Strings 18 | color green "(\\|\\\\)\*(.|\(..)" 19 | color green start="(\\|\\\\)\*\[" end="]" 20 | ## Characters 21 | color brightred "\\\(.." 22 | color brightred start="\\\[" end="]" 23 | ## Macro arguments 24 | color brightcyan "\\\\\$[1-9]" 25 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/html.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is a short example for HTML. 2 | ## 3 | syntax "html" "\.html$" 4 | color blue start="<" end=">" 5 | color red "&[^;[[:space:]]]*;" 6 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/java.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for Java. 2 | ## 3 | syntax "java" "\.java$" 4 | color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>" 5 | color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>" 6 | color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>" 7 | color red ""[^"]*"" 8 | color yellow "\<(true|false|null)\>" 9 | color blue "//.*" 10 | color blue start="/\*" end="\*/" 11 | color brightblue start="/\*\*" end="\*/" 12 | color ,green "[[:space:]]+$" 13 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/makefile.nanorc: -------------------------------------------------------------------------------- 1 | # unattributed syntax highlighting example from wiki.linuxhelp.net/ 2 | 3 | syntax "makefile" "Makefile[^/]*$" 4 | color red "[:=]" 5 | color magenta "\<(if|ifeq|else|endif)\>" 6 | color blue "\$+[{(][a-zA-Z0-9_-]+[})]" 7 | color brightblue "^[^ ]+:" 8 | color green "#.*$" 9 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/nanorc.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for nanorc files. 2 | ## 3 | syntax "nanorc" "\.?nanorc$" 4 | ## Possible errors and parameters 5 | icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$" 6 | ## Keywords 7 | icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|softwrap|speller|suspend|suspendenable|tabsize|tabstospaces|tempfile|undo|view|whitespace|wordbounds)\>" 8 | icolor green "^[[:space:]]*(set|unset|include|syntax|header)\>" 9 | ## Colors 10 | icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>" 11 | icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)=" 12 | ## Strings 13 | icolor white ""(\\.|[^"])*"" 14 | ## Comments 15 | icolor brightblue "^[[:space:]]*#.*$" 16 | icolor cyan "^[[:space:]]*##.*$" 17 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/objc.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for C/C++/Obj-C. 2 | ## 3 | syntax "m" "\.m$" 4 | 5 | 6 | ## Stuffs 7 | color brightwhite "\<[A-Z_][0-9A-Z_]+\>" 8 | color green "\<(float|double|BOOL|bool|char|int|short|long|id|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" 9 | color green "\<[[:alpha:]_][[:alnum:]_]*_t\>" 10 | color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" 11 | color brightgreen "\<(for|if|while|do|else|case|default|switch)\>" 12 | color brightgreen "\<(try|throw|catch|operator|new|delete)\>" 13 | color brightgreen "\<(goto|continue|break|return)\>" 14 | color brightgreen "@\<(en(code|d)|i(mplementation|nterface)|selector)\>" 15 | ## 16 | ## GCC builtins 17 | color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" 18 | 19 | ## Selector/method 20 | color brightmagenta "(^|[[:space:]])\[.*[[:space:]].*\]" 21 | color white ":[[:alnum:]]*" 22 | color magenta "[[:alnum:]]*:" 23 | color white "\[[^][:space:]]*\]" 24 | 25 | ## 26 | ## String highlighting. You will in general want your comments and 27 | ## strings to come last, because syntax highlighting rules will be 28 | ## applied in the order they are read in. 29 | color brightblack "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" 30 | color brightblack "<[^= ]*>" ""(\\.|[^"])*"" 31 | color brightblue "@"(\\.|[^"])*"" 32 | ## 33 | ## This string is VERY resource intensive! 34 | ## color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" 35 | 36 | color brightblue "^[[:space:]]*#[[:space:]]*(define|include|import|(un|ifn?)def|endif|el(if|se)|if|warning|error)" 37 | 38 | ## Comment highlighting 39 | color yellow "//.*" 40 | color yellow start="/\*" end="\*/" 41 | 42 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/ocaml.nanorc: -------------------------------------------------------------------------------- 1 | # OCaml sample nanorc 2 | # 3 | syntax "ocaml" "\.mli?$" 4 | #uid 5 | color red "\<[A-Z][0-9a-z_]{2,}\>" 6 | #declarations 7 | color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>" 8 | #structure items 9 | color red "\<(type|open|class|module|exception|external)\>" 10 | #patterns 11 | color blue "\<(fun|function|functor|match|try|with)\>" 12 | #patterns-modifiers 13 | color yellow "\<(as|when|of)\>" 14 | #conditions 15 | color cyan "\<(if|then|else)\>" 16 | #blocs 17 | color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>" 18 | #constantes 19 | color green "\<(true|false)\>" 20 | #modules/classes 21 | color green "\<(include|inherit|initializer)\>" 22 | #expr modifiers 23 | color yellow "\<(new|ref|mutable|lazy|assert|raise)\>" 24 | #comments 25 | color white start="\(\*" end="\*\)" 26 | #strings (no multiline handling yet) 27 | color brightblack ""[^\"]*"" 28 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/patch.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for patch files. 2 | ## 3 | syntax "patch" "\.(patch|diff)$" 4 | color brightgreen "^\+.*" 5 | color green "^\+\+\+.*" 6 | color brightblue "^ .*" 7 | color brightred "^-.*" 8 | color red "^---.*" 9 | color brightyellow "^@@.*" 10 | color magenta "^diff.*" 11 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/perl.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for Perl. 2 | ## 3 | syntax "perl" "\.p[lm]$" 4 | header "^#!.*/perl[-0-9._]*" 5 | color red "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork))\>" "\<(get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join)\>" "\<(keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek(dir)?)\>" "\<(se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr(y)?|truncate|umask)\>" "\<(un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>" 6 | color magenta "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>" 7 | icolor cyan start="[$@%]" end="( |[^0-9A-Z_]|-)" 8 | color yellow "".*"|qq\|.*\|" 9 | color white "[sm]/.*/" 10 | color white start="(^use| = new)" end=";" 11 | color green "#.*" 12 | color yellow start="<< 'STOP'" end="STOP" 13 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/php.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for PHP 2 | ## 3 | syntax "php" "\.php[2345s~]?$" 4 | 5 | ## php markings 6 | color brightgreen "(<\?(php)?|\?>)" 7 | 8 | ## functions 9 | color white "\<[a-z_]*\(" 10 | 11 | ## types 12 | color green "\<(var|float|global|double|bool|char|int|enum|const)\>" 13 | 14 | ## structure 15 | color brightyellow "\<(class|new|private|public|function|for|foreach|if|while|do|else|elseif|case|default|switch)\>" 16 | 17 | ## control flow 18 | color magenta "\<(goto|continue|break|return)\>" 19 | 20 | ## strings 21 | color brightyellow "<[^= ]*>" ""(\.|[^"])*"" 22 | 23 | ## comments 24 | color brightblue "//.*" 25 | color brightblue start="/\*" end="\*/" 26 | #color blue start="<" end=">" 27 | #color red "&[^;[[:space:]]]*;" 28 | 29 | ## Trailing whitespace 30 | color ,green "[[:space:]]+$" 31 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/python.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for Python. 2 | ## 3 | syntax "python" "\.py$" 4 | header "^#!.*/python[-0-9._]*" 5 | icolor brightblue "def [0-9A-Z_]+" 6 | color brightcyan "\<(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\>" 7 | color brightgreen "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" 8 | color brightgreen "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" 9 | color brightgreen start=""""[^"]" end=""""" start="'''[^']" end="'''" 10 | color brightred "#.*$" 11 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/ruby.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for Ruby. 2 | ## 3 | syntax "ruby" "\.rb$" 4 | header "^#!.*/ruby[-0-9._]*" 5 | ## Asciibetical list of reserved words 6 | color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>" 7 | ## Constants 8 | color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" 9 | ## Ruby "symbols" 10 | icolor magenta "([ ]|^):[0-9A-Z_]+\>" 11 | ## Some unique things we want to stand out 12 | color brightyellow "\<(__FILE__|__LINE__)\>" 13 | ## Regular expressions 14 | color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" 15 | ## Shell command expansion is in `backticks` or like %x{this}. These are 16 | ## "double-quotish" (to use a perlism). 17 | color brightblue "`[^`]*`" "%x\{[^}]*\}" 18 | ## Strings, double-quoted 19 | color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" 20 | ## Expression substitution. These go inside double-quoted strings, 21 | ## "like #{this}". 22 | color brightgreen "#\{[^}]*\}" 23 | ## Strings, single-quoted 24 | color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" 25 | ## Comments 26 | color cyan "#[^{].*$" "#$" 27 | color brightcyan "##[^{].*$" "##$" 28 | ## "Here" docs 29 | color green start="<<-?'?EOT'?" end="^EOT" 30 | ## Some common markers 31 | color brightcyan "(XXX|TODO|FIXME|\?\?\?)" 32 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/sh.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for Bourne shell scripts. 2 | ## 3 | syntax "sh" "\.sh$" 4 | header "^#!.*/(ba|k|pdk)?sh[-0-9_]*" 5 | icolor brightgreen "^[0-9A-Z_]+\(\)" 6 | color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" 7 | color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" 8 | color green "-[Ldefgruwx]\>" 9 | color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" 10 | color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" 11 | icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" 12 | color cyan "(^|[[:space:]])#.*$" 13 | color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" 14 | color ,green "[[:space:]]+$" 15 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/tcl.nanorc: -------------------------------------------------------------------------------- 1 | syntax "tcl" "\.tcl$" 2 | 3 | ## Standard Tcl [info commands] 4 | color green "\<(after|append|array|auto_execok|auto_import|auto_load|auto_load_index|auto_qualify|binary|break|case|catch|cd|clock|close|concat|continue|encoding|eof|error|eval|exec|exit|expr|fblocked|fconfigure|fcopy|file|fileevent|flush|for|foreach|format|gets|glob|global|history|if|incr|info|interp|join|lappend|lindex|linsert|list|llength|load|lrange|lreplace|lsearch|lset|lsort|namespace|open|package|pid|puts|pwd|read|regexp|regsub|rename|return|scan|seek|set|socket|source|split|string|subst|switch|tclLog|tell|time|trace|unknown|unset|update|uplevel|upvar|variable|vwait|while)\>" 5 | ## Basic Tcl sub commands. 6 | color green "\<(array anymore|array donesearch|array exists|array get|array names|array nextelement|array set|array size|array startsearch|array statistics|array unset)\>" 7 | color green "\<(string bytelength|string compare|string equal|string first|string index|string is|string last|string length|string map|string match|string range|string repeat|string replace|string to|string tolower|string totitle|string toupper|string trim|string trimleft|string trimright|string will|string wordend|string wordstart)\>" 8 | ## Extended TclX [info commands] 9 | color green "\<(alarm|auto_load_pkg|bsearch|catclose|catgets|catopen|ccollate|cconcat|cequal|chgrp|chmod|chown|chroot|cindex|clength|cmdtrace|commandloop|crange|csubstr|ctoken|ctype|dup|echo|execl|fcntl|flock|fork|fstat|ftruncate|funlock|host_info|id|infox|keyldel|keylget|keylkeys|keylset|kill|lassign|lcontain|lempty|lgets|link|lmatch|loadlibindex|loop|lvarcat|lvarpop|lvarpush|max|min|nice|pipe|profile|random|readdir|replicate|scancontext|scanfile|scanmatch|select|server_accept|server_create|signal|sleep|sync|system|tclx_findinit|tclx_fork|tclx_load_tndxs|tclx_sleep|tclx_system|tclx_wait|times|translit|try_eval|umask|wait)\>" 10 | ## Syntax. 11 | color brightblue "proc[[:space:]]" "(\{|\})" 12 | color green "(\(|\)|\;|`|\\|\$|<|>|!|=|&|\|)" 13 | color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" 14 | icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" 15 | color ,green "[[:space:]]+$" 16 | color ,magenta "^[[:space:]]*#.*" 17 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/tex.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is a short example for TeX files. 2 | ## 3 | syntax "tex" "\.tex$" 4 | icolor green "\\.|\\[A-Z]*" 5 | color magenta "[{}]" 6 | color blue "%.*" 7 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/nano/xml.nanorc: -------------------------------------------------------------------------------- 1 | ## Here is an example for xml files. 2 | ## 3 | syntax "xml" "\.([jrs]html?|sgml?|xml|xslt?)$" 4 | color green start="<" end=">" 5 | color cyan "<[^> ]+" 6 | color cyan ">" 7 | color yellow start="" 8 | color yellow start="" 9 | color red "&[^;]*;" 10 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/permissions/com.offsec.nethunter.store.privileged.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/E/Eterm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/E/Eterm -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/E/Eterm-color: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/E/Eterm-color -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/a/ansi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/a/ansi -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/c/cons25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/c/cons25 -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/c/cygwin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/c/cygwin -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/d/dumb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/d/dumb -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/h/hurd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/h/hurd -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/l/linux: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/l/linux -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/m/mach: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/m/mach -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/m/mach-bold: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/m/mach-bold -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/m/mach-color: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/m/mach-color -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/p/pcansi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/p/pcansi -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/r/rxvt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/r/rxvt -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/r/rxvt-basic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/r/rxvt-basic -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/s/screen: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/s/screen -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/s/screen-256color: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/s/screen-256color -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/s/screen-256color-bce: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/s/screen-256color-bce -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/s/screen-bce: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/s/screen-bce -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/s/screen-s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/s/screen-s -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/s/screen-w: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/s/screen-w -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/s/sun: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/s/sun -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/v/vt100: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/v/vt100 -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/v/vt102: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/v/vt102 -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/v/vt220: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/v/vt220 -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/v/vt52: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/v/vt52 -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/w/wsvt25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/w/wsvt25 -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/w/wsvt25m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/w/wsvt25m -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/x/xterm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/x/xterm -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/x/xterm-256color: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/x/xterm-256color -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/x/xterm-color: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/x/xterm-color -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/x/xterm-r5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/x/xterm-r5 -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/x/xterm-r6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/x/xterm-r6 -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/x/xterm-vt220: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/x/xterm-vt220 -------------------------------------------------------------------------------- /nethunter-installer/update/system/etc/terminfo/x/xterm-xfree86: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/etc/terminfo/x/xterm-xfree86 -------------------------------------------------------------------------------- /nethunter-installer/update/system/media/bootanimation.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/system/media/bootanimation.zip -------------------------------------------------------------------------------- /nethunter-installer/update/tools/installchroot.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | # Install Kali chroot 3 | 4 | tmp=$(readlink -f "$0") 5 | tmp=${tmp%/*/*} 6 | . "$tmp/env.sh" 7 | 8 | zip=$1 9 | 10 | console=$(cat /tmp/console) 11 | [ "$console" ] || console=/proc/$$/fd/1 12 | 13 | print() { 14 | echo "ui_print - $1" > $console 15 | echo 16 | } 17 | 18 | NHSYS=/data/local/nhsystem 19 | 20 | verify_fs() { 21 | # valid architecture? 22 | case $FS_ARCH in 23 | armhf|arm64|i386|amd64) ;; 24 | *) return 1 ;; 25 | esac 26 | # valid build size? 27 | case $FS_SIZE in 28 | full|minimal) ;; 29 | *) return 1 ;; 30 | esac 31 | return 0 32 | } 33 | 34 | # do_install [optional zip containing kalifs] 35 | do_install() { 36 | print "Found Kali chroot to be installed: $KALIFS" 37 | 38 | mkdir -p "$NHSYS" 39 | 40 | # HACK 1/2: Rename to kali-armhf until NetHunter App supports searching for best available arch 41 | CHROOT="$NHSYS/kali-armhf" # Legacy rootfs directory prior to 2020.1 42 | ROOTFS="$NHSYS/kalifs" # New symlink allowing to swap chroots via nethunter app on the fly 43 | 44 | # Remove previous chroot 45 | [ -d "$CHROOT" ] && { 46 | print "Removing previous chroot..." 47 | rm -rf "$CHROOT" 48 | rm -f "$ROOTFS" 49 | } 50 | 51 | # Extract new chroot 52 | print "Extracting Kali rootfs, this may take up to 25 minutes..." 53 | if [ "$1" ]; then 54 | unzip -p "$1" "$KALIFS" | busybox_nh tar -xJf - -C "$NHSYS" --exclude "kali-$FS_ARCH/dev" 55 | else 56 | busybox_nh tar -xJf "$KALIFS" -C "$NHSYS" --exclude "kali-$FS_ARCH/dev" 57 | fi 58 | 59 | [ $? = 0 ] || { 60 | print "Error: Kali $FS_ARCH $FS_SIZE chroot failed to install!" 61 | print "Maybe you ran out of space on your data partition?" 62 | exit 1 63 | } 64 | 65 | # HACK 2/2: Rename to kali-armhf for legacy reasons and create a link to be used by apps effective 2020.1 66 | mv "$NHSYS/kali-$FS_ARCH" "$CHROOT" 67 | ln -sf "$CHROOT" "$ROOTFS" 68 | 69 | mkdir -m 0755 "$CHROOT/dev" 70 | print "Kali $FS_ARCH $FS_SIZE chroot installed successfully!" 71 | 72 | # We should remove the rootfs archive to free up device memory or storage space (if not zip install) 73 | [ "$1" ] || rm -f "$KALIFS" 74 | 75 | exit 0 76 | } 77 | 78 | # Check zip for kalifs-* first 79 | [ -f "$zip" ] && { 80 | KALIFS=$(unzip -lqq "$zip" | awk '$4 ~ /^kalifs-/ { print $4; exit }') 81 | # Check other locations if zip didn't contain a kalifs-* 82 | [ "$KALIFS" ] || return 83 | 84 | FS_ARCH=$(echo "$KALIFS" | awk -F[-.] '{print $2}') 85 | FS_SIZE=$(echo "$KALIFS" | awk -F[-.] '{print $3}') 86 | verify_fs && do_install "$zip" 87 | } 88 | 89 | # Check these locations in priority order 90 | for fsdir in "$tmp" "/data/local" "/sdcard" "/external_sd"; do 91 | 92 | # Check location for kalifs-[arch]-[size].tar.xz name format 93 | for KALIFS in "$fsdir"/kalifs-*-*.tar.xz; do 94 | [ -s "$KALIFS" ] || continue 95 | FS_ARCH=$(basename "$KALIFS" | awk -F[-.] '{print $2}') 96 | FS_SIZE=$(basename "$KALIFS" | awk -F[-.] '{print $3}') 97 | verify_fs && do_install 98 | done 99 | 100 | # Check location for kalifs-[size].tar.xz name format 101 | for KALIFS in "$fsdir"/kalifs-*.tar.xz; do 102 | [ -f "$KALIFS" ] || continue 103 | FS_ARCH=armhf 104 | FS_SIZE=$(basename "$KALIFS" | awk -F[-.] '{print $2}') 105 | verify_fs && do_install 106 | done 107 | 108 | done 109 | 110 | print "No Kali rootfs archive found. Skipping..." 111 | exit 0 112 | -------------------------------------------------------------------------------- /nethunter-installer/update/tools/installsu.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | # Install SuperSU in the specified mode 3 | 4 | tmp=$(readlink -f "$0") 5 | tmp=${tmp%/*/*} 6 | . "$tmp/env.sh" 7 | 8 | console=$(cat /tmp/console) 9 | [ "$console" ] || console=/proc/$$/fd/1 10 | 11 | print() { 12 | echo "ui_print - $1" > $console 13 | echo 14 | } 15 | 16 | sutmp=$1 17 | supersu=$2 18 | 19 | if [ "$supersu" = "systemless" ]; then 20 | print "Installing SuperSU in systemless mode" 21 | cat < "/system/.supersu" 22 | SYSTEMLESS=true 23 | EOF 24 | elif [ "$supersu" = "system" ]; then 25 | print "Installing SuperSU in system mode" 26 | cat < "/system/.supersu" 27 | SYSTEMLESS=false 28 | EOF 29 | else 30 | print "Installing SuperSU in automatic mode" 31 | cat < "/system/.supersu" 32 | SYSTEMLESS=detect 33 | EOF 34 | fi 35 | 36 | sh "$sutmp/META-INF/com/google/android/update-binary" dummy 1 "$tmp/supersu.zip" 37 | -------------------------------------------------------------------------------- /nethunter-installer/update/tools/previnstall.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | # Check for previous install of Kali Chroot 3 | 4 | tmp=$(readlink -f "$0") 5 | tmp=${tmp%/*/*} 6 | . "$tmp/env.sh" 7 | 8 | # HACK: Old installations only exist as armhf anyways 9 | ARCH=armhf 10 | 11 | console=$(cat /tmp/console) 12 | [ "$console" ] || console=/proc/$$/fd/1 13 | 14 | print() { 15 | echo "ui_print - $1" > $console 16 | echo 17 | } 18 | 19 | NH=/data/local/kali-$ARCH 20 | NHAPP=/data/data/com.offsec.nethunter/files/chroot/kali-$ARCH 21 | NHSYS=/data/local/nhsystem/kali-$ARCH 22 | 23 | # Fix for TWRP chasing symbolic links (mentioned by triryland) 24 | rm -rf "$NHSYS/dev/"* "$NHAPP/dev/"* "$NH/dev/"* 25 | 26 | # We probably don't want two old chroots in the same folder, so pick newer location in /data/local first 27 | if [ -d "$NH" ]; then 28 | print "Detected previous install of Kali $ARCH, moving chroot..." 29 | mv "$NH" "$NHSYS" 30 | elif [ -d "$NHAPP" ]; then 31 | print "Detected previous install of Kali $ARCH, moving chroot..." 32 | mv "$NHAPP" "$NHSYS" 33 | fi 34 | 35 | # Just to be safe lets remove old version of NetHunter app 36 | rm -rf /data/data/com.offsec.nethunter 37 | rm -rf /data/app/com.offsec.nethunter 38 | rm -f /data/app/NetHunter.apk 39 | rm -f /data/app/nethunter.apk 40 | 41 | sleep 3 42 | -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/1080x1920.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/1080x1920.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/1080x2160.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/1080x2160.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/1080x2340.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/1080x2340.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/1280x1280.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/1280x1280.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/1280x800.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/1280x800.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/1440x2560.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/1440x2560.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/1440x2720.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/1440x2720.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/1536x2048.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/1536x2048.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/1920x1920.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/1920x1920.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/2048x1536.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/2048x1536.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/2560x1440.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/2560x1440.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/2560x1600.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/2560x1600.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/2560x2560.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/2560x2560.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/720x1280.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/720x1280.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/720x1440.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/720x1440.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/768x1280.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KekHunterOS/kali-nethunter-project/b18239aaeefb7f1f1cb46e487bf47a209d7dbfcf/nethunter-installer/update/wallpaper/768x1280.png -------------------------------------------------------------------------------- /nethunter-installer/update/wallpaper/setwallpaper.sh: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | # Set the wallpaper based on device screen resolution 3 | 4 | tmp=$(readlink -f "$0") 5 | tmp=${tmp%/*/*} 6 | cd "$tmp" 7 | . ./env.sh 8 | 9 | wp=/data/system/users/0/wallpaper 10 | wpinfo=${wp}_info.xml 11 | 12 | console=$(cat /tmp/console) 13 | [ "$console" ] || console=/proc/$$/fd/1 14 | 15 | print() { 16 | echo "ui_print - $1" > "$console" 17 | echo 18 | } 19 | 20 | res=$(tools/screenres) 21 | 22 | if [ ! "$res" ] || [[ "$res" == *"failed"* ]] || [ -f "wallpaper/resolution.txt" ]; then 23 | if [ -f "wallpaper/resolution.txt" ]; then 24 | res=$(cat wallpaper/resolution.txt) 25 | else 26 | print "Can't get screen resolution from kernel! Skipping..." 27 | exit 1 28 | fi 29 | fi 30 | 31 | print "Found screen resolution: $res" 32 | 33 | if [ ! -f "wallpaper/$res.png" ]; then 34 | print "No wallpaper found for your screen resolution. Skipping..." 35 | exit 1 36 | fi 37 | 38 | res_w=$(echo "$res" | cut -f1 -dx) 39 | res_h=$(echo "$res" | cut -f2 -dx) 40 | 41 | [ -f "$wp" ] && [ -f "$wpinfo" ] || setup_wp=1 42 | 43 | cat "wallpaper/$res.png" > "$wp" 44 | 45 | echo "" > "$wpinfo" 46 | echo "" >> "$wpinfo" 47 | 48 | if [ "$setup_wp" ]; then 49 | chown system:system "$wp" "$wpinfo" 50 | chmod 600 "$wp" "$wpinfo" 51 | chcon "u:object_r:wallpaper_file:s0" "$wp" 52 | chcon "u:object_r:system_data_file:s0" "$wpinfo" 53 | fi 54 | 55 | print "NetHunter wallpaper applied successfully" 56 | 57 | exit 0 58 | -------------------------------------------------------------------------------- /nethunter-rootless/README.md: -------------------------------------------------------------------------------- 1 | # NetHunter - Mobile Penetration Testing Platform 2 | # _Rootless Editions_ 3 | 4 | ###### For use on unmodified stock Android phones without voiding the warranty 5 | 6 | ![Kali NetHunter](https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project/raw/master/images/nethunter-git-logo.png) 7 | ### NetHunter Termux Edition 8 | 9 | [![](../images/010-NH-Rootless-Installation_Start_s.jpg)](../images/010-NH-Rootless-Installation_Start.jpg) 10 | 11 | 12 | 13 | [![](../images/020-NH-Rootless-KeX_s.jpg)](../images/020-NH-Rootless-KeX_s.jpg) 14 | 15 | 16 | 17 | Prerequisite: 18 | -------------- 19 | Android Device 20 | (Stock unmodified device, no root or custom recovery required) 21 | 22 | 23 | 24 | Installation: 25 | -------------- 26 | 27 | * Install the NetHunter-Store app from https://store.nethunter.com 28 | * From the NetHunter Store, install __Termux__, __NetHunter-KeX client__, and __Hacker's keyboard__ 29 | _Note:_ 30 | _The button "install" may not change to "installed" in the store client after installation - just ignore it._ 31 | _Starting termux for the first time may seem stuck while displaying "installing" on some devices - just hit enter._ 32 | 33 | * Open Termux and type: 34 | `termux-setup-storage` 35 | `pkg install wget` 36 | `wget -O install-nethunter-termux https://offs.ec/2MceZWr` 37 | `chmod +x install-nethunter-termux` 38 | `./install-nethunter-termux` 39 | 40 | 41 | 42 | Usage: 43 | ------- 44 | 45 | Open Termux and type one of the following: 46 | 47 | | Command | To | 48 | | ------------------------- | ------------------------------------------------------- | 49 | | `nethunter` | start Kali NetHunter command line interface | 50 | | `nethunter kex passwd` | configure the KeX password (only needed before 1st use) | 51 | | `nethunter kex &` | start Kali NetHunter Desktop Experience user sessions | 52 | | `nethunter kex stop` | stop Kali NetHunter Desktop Experience | 53 | | `nethunter ` | run in NetHunter environment | 54 | | `nethunter -r` | start Kali NetHunter cli as root | 55 | | `nethunter -r kex passwd` | configure the KeX password for root | 56 | | `nethunter -r kex &` | start Kali NetHunter Desktop Experience as root | 57 | | `nethunter -r kex stop` | stop Kali NetHunter Desktop Experience root sessions | 58 | | `nethunter -r kex kill` | Kill all KeX sessions | 59 | | `nethunter -r ` | run `` in NetHunter environment as root | 60 | 61 | Note: The command `nethunter` can be abbreviated to `nh`. 62 | _Tip: If you run kex in the background (`&`) without having set a password, bring it back to the foreground first when prompted to enter the password, i.e. via `fg ` - you can later send it to the background again via `Ctrl + z` and `bg `_ 63 | 64 | To use KeX, start the KeX client, enter your password and click connect 65 | _Tip: For a better viewing experience, enter a custom resolution under "Advanced Settings" in the KeX Client_ -------------------------------------------------------------------------------- /version.txt: -------------------------------------------------------------------------------- 1 | { 2 | "version_code": 21, 3 | "chroot_version": 3, 4 | "chroot_sha512_full": "68a3c557e14ec301fd37831793485c2280b9f706975cff3f9f9cf4000c9703b27dd21b5e076bded0ceff6e5652efc225b0dc76aa391ac5a7e90d683e3b43b647", 5 | "chroot_sha512_min": "86752fba98b54daf5f66d04b1306ebebb25ea434bd5f17aa53b53c75aef6e9309084e0e6c01b94461dcb5615e4dd9eb97ac1d8973ebadcd1f6962b99312ae7e5", 6 | "content": "Version 3.15.4

Wardriving fix added by @ilakattack (needs nethunter-utils update)

" 7 | } 8 | --------------------------------------------------------------------------------