Skip to content

Latest commit

 

History

History
executable file
·
393 lines (263 loc) · 25.9 KB

File metadata and controls

executable file
·
393 lines (263 loc) · 25.9 KB

DJY

GitHub issues GitHub Forks GitHub Stars Watch This Project DJY Kernel Version Magisk Modules Version Recently updated GitHub License


Other languages: 中文Click

Contents

Warning!!!Warning: please read the instructions carefully before proceeding with further procedures. I WILL NOT BE HELD RESPONSIBLE for the system or hardware failures which may occur in the process. This instruction is already self-explaining and simple to understand, and if after reading it you still don't understand how to complete the procedure, aborting this attempt is recommended for you may need certain experience and knowledge to deal with any problems in the process. Warning

Warning!!!Warning: this kernel and instruction is for study purpose only. I will not be held responsible for any misuse or any attempt to use them illegally!!!Warning

  • Clickclick to veaw the html version of this instruction
  • ClickFeatures
  • Click[Latest update log](#Latest update log)
  • Click[Known bugs and missing features](#Known bugs and missing features)
  • Click[Magisk modules](#Magisk modules)
  • Click[Installation guide](#Installation guide)
  • Click[Testing screenshots and videos](#Testing screenshots and videos)
  • Click[Common problems and solutions](#Common problems and solutions)
  • Click[Equipments purchase recommendations](#Equipments purchase recommendations)
  • Click[Relevent codes and credit](#Relevent codes and credit)
  • ClickContact

Features

  • Greetings everyone, I'm a amateur player ID from China: DJY. I like singing, dancing, Rap and basketball!!!( Just being funny on the fact that I'm amateur....)

XJ CXK XJ2

  • This is a utility kernel which has the support for Kali Nethunter and Andrax. It's designed to operate on oneplus6 and oneplus6T. Basically it's like a portable Linux machine with all major features and functions:

  • Current version DJY-Kernel-V68Update

  • aarch64-gcc-10 compiled Update

  • Built basing on Elementalx kernel configuration files to ensure stability and speed.Update

  • Merged upstream Linux code to make sure it's up-to-date.Update

  • Compiled drivers for common wireless hardware on Linux official site to ensure the normal function of airmon-ng.(rt2561.bin mt7601u.bin rt3290.bin rt3071.bin rt73.bin rtlwifi/rtl8192eefw.bin rtlwifi/rtl8821aefw_wowlan.bin rtlwifi/rtl8188eufw.bin rtlwifi/rtl8188efw.bin rtlwifi/rtl8192cfwU.bin rtlwifi/rtl8192cfwU_B.bin rtlwifi/rtl8192cufw_TMSC.bin rtlwifi/rtl8192cufw_A.bin rtlwifi/rtl8192cufw.bin rtlwifi/rtl8821aefw.bin rtlwifi/rtl8192sefw.bin rtlwifi/rtl8192cfw.bin rtlwifi/rtl8192eu_nic.bin rtlwifi/rtl8192defw.bin rtlwifi/rtl8192cufw_B.bin rt2561s.bin rt2661.bin rt3070.bin rt2870.bin rt2860.bin carl9170-1.fw ath9k_htc/htc_9271-1.4.0.fw ath9k_htc/htc_7010-1.4.0.fw ar7010.fw ar7010_1_1.fw htc_9271.fw)


  • Support for Elementalx Kernel features
  • Set Selinux to Permissive permenantly
  • Support for HID Attack
  • Support for Droidducky Attack
  • Support for cellphone sniffing data in Rndismode with OTG
  • Support for using all common WIET through OTG
  • Support for HackRF
  • Support for Rtl-SDR
  • Support for BladefRF
  • Support for Yard stick one
  • Support for Ubertooth
  • Support for LimeSDR
  • Support for USRP
  • Support for HackRF USRP RTL-SDR BladeRF LimeSDR UHD drivers
  • Support for OTG buletooth attack
  • Support for Mousejack
  • Support for all kinds of IR devices
  • Support for PN532
  • Support for Chameleon-Mini
  • Support for Proxmark3 HID driver
  • Support for Proxmark3 CDC driver
  • Support for pppoe cables to sniff routers
  • Support for Lan-tap
  • Support for all kinds of extended cables
  • Support for PLC devices with connectors
  • Support for Osmocombb OTG C118 C119 (RF devices)
  • Support for OpenBTS C118 (RF device)
  • Unlocked full NFC features (requires secondary development in apps)
  • Support for built-in AM/FM functions(需要应用APP二次开发)
  • Support for plug-to-use keyboards and mouses
  • Support for OTG cameras, micorphones, etc.
  • Support for flashing Arduino with serial interface
  • Support for adb,fastboot flashing devices and reading images in Chroot
  • Support for connecting USB bluetooth, Raspberry Pi, ESP8266 (support for WIFI HID Attack), etc. with TTL connector
  • Support for all kinds of cables like: PL2303, CP210X, CH340, etc.
  • Support for all kinds of connectors like: SMA, HDMI, TNC, etc. Warning(Some of the connectors need to be welded by yourself, and HDMI convertion requires video adapter with displaylink. I would recommend to purchase DA100)DA100Click
  • Support for custom boot up animation
  • Automatic Magisk installation when flashing the kernel package (to be fixed)

  • Other features and supports to be founded.........

I intergrated a lot of drivers in this update, so it should support a wide range of devices. If you possess USB devices or devices that can be converted to Type-C interface, you're welcomed to test if it's supported. I appreciate all feedback on features and device support to fully confirm the capability of the kernel. Your support and help is my greatest motivation.


Latest update log

  • Improved anykernel2 package to make it easier for beginners to flash in. Also added some ko files to /system/ in the wireless module for easier mounting. Also added some apps. Update

  • rtl8188eu.ko module added, along with other ko modules. Update


Testing screenshots and videos


Known bugs and missing features

1、FailOne missing feature is Wireless extension compatibility. It's used for configuring external WIET. It can configure the power, mount/unmount, connecting, etc. through iwconfig command. I've tried to migrate modules for kernel 4.14 4.19 5.0 5.1 but didn't succeed. Every time I enable this module, the phone will continue to crush and reboot, until a WIET is connected via OTG. I checked the bootup log with and without this module, and the debug log seems to indicate that the WiFi chip firmware provided by the manufacture doesn't support this module. Please let me know if anyone can fix this, and I would deeply appreciate your help. The debug log is provided as follow:

Clickclick to download the debug logs

2、FailThe 5G drivers for 8811au, 8812au, 8814au,8821au are still missing, but being considered to be migrated. Please await later versions.(Attempt aborted. I've tried multiple times totransport relevant modules in multiple versions, but it all goes wrong when packing. The error message is:

erro:ioctl_cfg80211.c:816:6: error: passing argument 2 of ‘cfg80211_roamed’ from incompatible pointer type [-Werror=incompatible-pointer-types], notify_channel

I Googled revelent information, and noticed that this problem is more than common and has no effective solution. I believe that this is because of the driver does not support kernel 4.9. Lacking required skills, I decided to give up on this attempt. If anyone can solve this problem or has any constructive ideas, please contact me. I've uploaded relevant codes to my corresponding repository.)

Clickclick to view the kernel codes

3、Because of system as root in Android 9.0, and in order to maximize the compatability and portability,WarningI will add a command to delete /system/system/app/Duo/Duo.apk in the packageWarningfor it to be flashed over different versions of OOS. If you need it, you can download this app from Play Store. The following is files on system as root:

Clicksysetm as root

4、The script to automatically install Magisk cause unexpected bugs, which have led to unsuccessful flashing. There are temperory solutions but that's not what I'm after, so it still remains to be fixed.


Magisk modules

  • Current version: DJY-V69 Update

  • Warning!!!FLASH THE MODULE IN MAGISK!!!Warning

  • This module is for any Android phone with magisk.

  • This module stores all .apk files in /sdcrad/apks/ , so if some .apk files are not installed properly, please proceed to this directory and install them manually.

  • **WarningIf you need to add or delete any .apk files, please put the files in /sdcrad/apks/ or remove the existing files. The automated procedure will detect the files and install them. After that use **

    zip -r9 DJY.zip *

    to flash it.

  • If you'd like to modify the bootup animation, please replace the /system/media/bootanimation.zip file and use

    zip -r9 DJY.zip *

    to flash.

  • This Magisk module is a collection of common applications, custom bootup animation and wireless firmware. I will commit my module to Magisk officials, by then you'd be able to download my module from the Magisk Manager app. Here is the module:

  • Clickclick to download latest Magisk moduleTo prevent illegal altering the module and its downloading source, please perform a sha1sumverification before proceeding. The current sha1sum:1ab60c5fb63d642a67a8f0b8488f651b8a7d26fcWarning

  • Recommend推荐Lucky Patcher APP is recommendedclick to downloadClick

├── [       4096 May 12 21:55]  ./META-INF
│   └── [       4096 May 12 21:55]  ./META-INF/com
├── [       4096 May 20 23:02]  ./system
│   ├── [       4096 May 21 17:10]  ./system/vendor         <<<相关的无线固件增量包 2019-5.14
│   ├── [       4096 May 24 23:12]  ./system/bin            <<<Nethunter脚本和busybox osm0sis 1.30.1
│   └── [       4096 May 26 19:01]  ./system/media          <<<自定义开机动画
├── [       9644 Jun  2 03:03]  ./install.sh
├── [       4096 Jun  9 22:58]  ./apks
│   ├── [    1567092 Feb 28  2008]  ./apks/RFAnalyzer.apk
│   ├── [    7027446 Feb 28  2008]  ./apks/USBKeyboard.apk
│   ├── [    3703111 Nov 11  2018]  ./apks/shadowsocksr-release.apk
│   ├── [    5288616 Jan 31 12:30]  ./apks/WiFi.apk
│   ├── [    2026553 Feb 15 07:50]  ./apks/marto.rtl_tcp_andro_20_apps.evozi.com.apk
│   ├── [     815360 Mar 12 17:05]  ./apks/com.google.zxing.client.android-4.7.7-107-1042.apk
│   ├── [    4967790 Mar 12 17:19]  ./apks/com.softwarebakery.drivedroid_105000_apps.evozi.com.apk
│   ├── [    2148516 Mar 27 18:22]  ./apks/marto.androsdr2_39_apps.evozi.com.apk
│   ├── [    1150510 Mar 27 20:24]  ./apks/org.hak5.pineappleconnector_2_apps.evozi.com.apk
│   ├── [    2178273 Mar 27 21:08]  ./apks/bs.Avare.ADSB_80_apps.evozi.com.apk
│   ├── [    1519246 Mar 27 21:09]  ./apks/com.sdr_labs.sdroid_1307_apps.evozi.com.apk
│   ├── [    5688667 Mar 27 21:12]  ./apks/com.comthings.pandwarf_10239_apps.evozi.com.apk
│   ├── [    7472625 Apr 16 03:59]  ./apks/andprox-2.0.4.apk
│   ├── [   41671719 Apr 16 10:36]  ./apks/Remote_4.2.2_apk-dl.com.apk
│   ├── [   13024665 Apr 16 10:47]  ./apks/VNC_Viewer_3.5.0.40825_apk-dl.com.apk
│   ├── [    2129924 Apr 16 10:56]  ./apks/GPS_status_1.1.6_apk-dl.com.apk
│   ├── [   13188907 Apr 17 04:40]  ./apks/Speedtest.apk
│   ├── [    1431748 May 26 23:07]  ./apks/hash.apk
│   ├── [    7512395 May 27 00:32]  ./apks/MT.apk
│   ├── [   25107235 May 27 00:43]  ./apks/zAnti3.19.apk
│   ├── [    4275354 May 27 00:44]  ./apks/cSploit-nightly.apk
│   ├── [    5450821 May 27 01:28]  ./apks/Intercepter-NG.2.1.apk
│   ├── [    4804885 May 28 21:44]  ./apks/shadowsocks-arm64-v8a-4.8.0.apk
│   ├── [   10845337 Jun  1 09:19]  ./apks/juicessh-2.1.4.apk
│   ├── [    7553899 Jun  3 08:03]  ./apks/whid.apk
│   ├── [    7573496 Jun  7 09:48]  ./apks/Lucky-Patcher-Official-8.4.3.apk
│   ├── [    5643092 Jun  9 22:50]  ./apks/nethunter-app.apk             <<<Android Studio 3.6Canany3(191.5618338)编译于2019-6-9
│   ├── [   11354644 Jun  9 22:52]  ./apks/linux_deploy.apk              <<<Android Studio 3.6Canany3(191.5618338)编译于2019-6-9
│   ├── [    7779063 Jun  9 22:54]  ./apks/Hijacker.apk                  <<<Android Studio 3.6Canany3(191.5618338)编译于2019-6-9
│   ├── [    1320896 Jun  9 22:56]  ./apks/term.apk                      <<<Android Studio 3.6Canany3(191.5618338)编译于2019-6-9
│   └── [   24158447 Jun  9 22:58]  ./apks/droidducky.apk                <<<Android Studio 3.6Canany3(191.5618338)编译于2019-6-9
└── [        191 Jun  9 22:58]  ./module.prop

Installation guide

  • 1、WarningFor the phone whose bootloader isn't unlocked, there steps are required before flashing TWRPWarning

Go to Settings>>>About phone>>>tap the Build number for 7 times to unlock the developer options>>>System>>>Developer options>>>Turn on USB Debug>>>Then connect the phone to your PC and run bootloader-unlock.sh/bat(under Linux use

bash bootloader-unlock.sh

under Window double click bootloader-unlock.bat)>>>choose YES

  • 2、Warning!!!Before installing you'll need to set up certain environment and install some tools. I have packed most of the things you'll need, please read this document carefully!!!Warning

    ClickClick to view the installation tutorial

  • 3、If you still don't know how to do it please refer to the video tutorial below:

    ClickClick to view the video installation tutorial

  • 4、About the Kali Choot installation: personally I would recommend using Linux Deploy to install it for it can be set to always install the latest release. Of coures, youcan also choose to install kalifs-xx.xz package from Nethunter official site.

    ClickKali Chroot Install

  • 5、If you still don't understand how to flash and use this kernel please refer to the following instruction:

  • Fack YOU!!!You fucking stupid? A regular kernel flashing takes simply tow steps, and I wrote a huge load of articles, you still don't get it? If you can't read, can't you just fucking Google it?!!!Fack YOU

Common problems and solutions

1、WarningIf Nethunter app malfunction please install Nethunter terminal。

2、WarningIf bootkali can't be correctly executed in adb shell or Android shell please flash the Magisk module again.

3、WarningIf you installed Kali with Linux Deploy APP and postgesql cannot start in MetaSploit Framwork, please reffer to the following codes. Same goes for the mysql problem.

nano /usr/sbin/update-rc.d
# Blacklist
# postgresql disabled (comment)

#Whitelist
postgresql enabled (add)
-----
than you need to grand permisson of postgresql
usermod -a -G aid_inet postgres
service postgresql start
exit
bootkali

4、WarningIf WIFITE and fluxion malfunction please click hereClick

5、WarningIf the new Droidducky HID Attack app can't start up, please run one of the following commands in Android shell (under root privillage) :

setprop sys.usb.config win,hid
setprop sys.usb.config win,mass_storage
setprop sys.usb.config win,rndis
setprop sys.usb.config win,hid,mass_storage
setprop sys.usb.config win,rndis,hid
setprop sys.usb.config win,rndis,mass_storage
setprop sys.usb.config win,rndis,hid,mass_storage
setprop sys.usb.config mac,hid
setprop sys.usb.config mac,mass_storage
setprop sys.usb.config mac,ecm
setprop sys.usb.config mac,hid,mass_storage
setprop sys.usb.config mac,ecm,hid
setprop sys.usb.config mac,ecm,mass_storage
setprop sys.usb.config mac,ecm,hid,mass_storage
setprop sys.usb.config win,hid,adb
setprop sys.usb.config win,mass_storage
setprop sys.usb.config win,rndis
setprop sys.usb.config win,hid,adb,mass_storage
setprop sys.usb.config win,rndis,hid,adb
setprop sys.usb.config win,rndis,mass_storage
setprop sys.usb.config win,rndis,hid,adb,mass_storage
setprop sys.usb.config mac,hid,adb
setprop sys.usb.config mac,mass_storage
setprop sys.usb.config mac,ecm
setprop sys.usb.config mac,hid,adb,mass_storage
setprop sys.usb.config mac,ecm,hid,adb
setprop sys.usb.config mac,ecm,mass_storage
setprop sys.usb.config mac,ecm,hid,adb,mass_storage

Equipments purchase recommendations

Clickclick here to view the equipments purchase recommendations


Relevent codes and credit

I would especially like to thank @simonpunk for his support on fixing the HID. Buliding codes used in this project:

https://github.com/simonpunk/nethunter-app

https://github.com/pelya/android-keyboard-gadget

https://github.com/simonpunk/Android-Terminal-Emulator

Thanks @draguve for his opensource HID Attack project:

https://github.com/draguve/droidducky-app

Thanks @kristofpetho for his opensource kernel codes:

https://github.com/kristofpetho/op6

This is the source code of the kernel I repaired. The HID and WiFi features are fixed and Selinux is set to Permissive permanently,and continously mearge Linux official codes as well as drivers for common wireless devices.

https://github.com/johanlike/DJY-Nethunter-Andrax-Kernel-Source

Thanks @meefik @chrisk44 @draguve @simonpunk for their contribution to these repositories:

https://github.com/chrisk44/Hijacker.git Update

https://github.com/draguve/droidducky-app Update

https://github.com/simonpunk/nethunter-app Update

https://github.com/simonpunk/Android-Terminal-Emulator Update

List of gratitude to relevant firmware and configuration files

https://cdn.kernel.org/ Update

https://github.com/flar2/OnePlus6 Update

https://github.com/baalajimaestro/aarch64-maestro-linux-android Update

https://github.com/osm0sis/android-busybox-ndk Update

https://github.com/cyxx/extract_android_ota_payload Update

I'd like to appreciate the following personnel for the long-term support to me and to this project, I would never made it this far without any of you. Thank you a million times!

@壹纸寂寞 (I really appreciate him for his support, he provided great help since I started to develop this kernel.)

@simonpunk (Thanks to him the HID is functional)

@Noob-DaoXin (I really can't speak English very well.... His translation is of great help to me.)

@jx linchun (Thank him for providing some of the screenshots and test videos.)

I do appreciate the following personnel for the continous publicity and support:

@netnetnetnet

@唯物论

@N10th

If I accidentally missed someone on this list, please contact me as soon as you see this. I apologize for my terriblr memory and carelessness. Thank you all again for your support!


Contact

Kali Linux QQ group: 712420808

Telegram:https://t.me/nethunter666

I do hope that everyone can respect hte hard work of the author, so that we can all make progress together.(Chinese people can use a little less conflict and cheating...... The leader of the Geek's eye and I can have a long conversation over that) If you'd like to reproduce this project, please state the original author and project, thank you.

Your support is my greatest motivation, and you're more than welcomed to Star, Fork, and Watch this project.

GitHub Forks GitHub Stars Watch This Project