1、Windows 10 使用 Kali Linux子系统
微软为 Windows Subsystem for Linux (WSL) 带来了著名的 Kali Linux ,无虚拟机,无Docker实现Windows 和 Kali Linux 交互。
window 开启 wsl 功能:
- 1.打开控制面板( win+R,输入 control,选择 "程序" )
- 2.从右侧面板中选择 "程序和功能"
- 3.点击左侧菜单中的 "打开或关闭Windows功能"
- 4.选择 "Windows Linux子系统" 并保存
- 5.重启。
打开微软商店,搜索 kali
2、oneplus7pro 刷 kali、
OnePlus 7 / 7Pro Android 10.0 稳定版刷回 OnePlus 7/7Pro Android P稳定版教程:
- 1、从指定地址下载对应的降级包拷贝至手机根目录
- 2、设置 -> 系统 -> 系统更新 -> 右上角icon -> 本地升级 -> 点击对应的安装包 -> 马上
- 升级 -> 系统升级完成
- 3、选择重启手机(或按电源键重新启动)
- 4、成功刷回安卓9.0稳定版
一加7:http://download.h2os.com/OnePlus7/fulldowngrade_wipe_MSM_18857_190501_2342_user.zip
一加7pro:http://download.h2os.com/OnePlus7Pro/MSM_18821_190728_1556_user_MP5_release_fulldowngrade.zip
OnePlus_7_Pro_Global_OxygenOS_10.3.8.zip:https://onepluscommunityserver.com/list/Unbrick_Tools/OnePlus_7_Pro/Global_GM21AA/Q/
[官方ROM] (更新到9.5.11)【搬运】OnePlus 7 Pro OxygenOS(氧OS)卡刷包
Oxygenos 9.5.1.GM21AA(来自安卓Q降级安卓P包)
https://oxygenos.oneplus.net/Fulldowngrade_wipe_18821_190425_0253_user_fix_revision_MP_release.zip
Oxygenos 9.5.3.GM21AA
下载地址一:
https://otafsg1.h2os.com/patch/amazone2/GLO/OnePlus7ProOxygen/OnePlus7ProOxygen_21.O.07_GLO_007_1905120542/OnePlus7ProOxygen_21.O.07_OTA_007_all_1905120542_aa37bad.zip
下载地址二:
https://oxygenos.oneplus.net/OnePlus7ProOxygen_21.O.07_OTA_007_all_1905120542_fc480574576b4843.zip
Oxygenos 9.5.4.GM21AA(2019/05/26更新)
下载地址一:
https://otafsg1.h2os.com/patch/amazone2/GLO/OnePlus7ProOxygen/OnePlus7ProOxygen_21.O.08_GLO_008_1905230032/OnePlus7ProOxygen_21.O.08_OTA_008_all_1905230032_1ef7fd0dc3.zip
下载地址二:
https://oxygenos.oneplus.net/OnePlus7ProOxygen_21.O.08_OTA_008_all_1905230032_57e28e455c1b4cf5.zip
Oxygenos 9.5.6.GM21AA(2019/05/30更新)
https://otafsg1.h2os.com/patch/amazone2/GLO/OnePlus7ProOxygen/OnePlus7ProOxygen_21.O.09_GLO_009_1905251729/OnePlus7ProOxygen_21.O.09_OTA_009_all_1905251729_602cdfd6bc1e.zip
Oxygenos 9.5.7.GM21AA(2019/06/07更新)
下载地址一:
https://otafsg1.h2os.com/patch/amazone2/GLO/OnePlus7ProOxygen/OnePlus7ProOxygen_21.O.10_GLO_010_1906040003/OnePlus7ProOxygen_21.O.10_OTA_010_all_1906040003_e53f7f152761.zip
下载地址二:
https://oxygenos.oneplus.net/OnePlus7ProOxygen_21.O.10_OTA_010_all_1906040003_b644e92e2da7453a.zip
Oxygenos 9.5.8.GM21AA(2019/06/19更新)
https://otafsg1.h2os.com/patch/amazone2/GLO/OnePlus7ProOxygen/OnePlus7ProOxygen_21.O.11_GLO_011_1906160627/OnePlus7ProOxygen_21.O.11_OTA_011_all_1906160627_b59b4dfc6d8c9a.zip
Oxygenos 9.5.9.GM21AA(2019/07/12更新)
https://otafsg1.h2os.com/patch/amazone2/GLO/OnePlus7ProOxygen/OnePlus7ProOxygen_21.O.12_GLO_012_1907050210/OnePlus7ProOxygen_21.O.12_OTA_012_all_1907050210_573f8fa.zip
Oxygenos 9.5.10.GM21AA(2019/08/01更新)
下载地址一:
https://otafsg1.h2os.com/patch/amazone2/GLO/OnePlus7ProOxygen/OnePlus7ProOxygen_21.O.13_GLO_013_1907122230/OnePlus7ProOxygen_21.O.13_OTA_013_all_1907122230_208e9e3ab2c660.zip
下载地址二:
https://oxygenos.oneplus.net/OnePlus7ProOxygen_21.O.13_OTA_013_all_1907122230_a41ad002fcbd4964.zip
Oxygenos 9.5.11.GM21AA(2019/08/01更新)
https://otafsg1.h2os.com/patch/amazone2/GLO/OnePlus7ProOxygen/OnePlus7ProOxygen_21.O.14_GLO_014_1907281611/OnePlus7ProOxygen_21.O.14_OTA_014_all_1907281611_7972d376.zip
OnePlus 7 Pro (5G)][ROM][OTA][Oxygen OS] Repo of Oxygen OS Builds
:https://forums.oneplus.com/threads/oneplus-7-pro-5g-rom-ota-oxygen-os-repo-of-oxygen-os-builds.1033129/
Packages with build tag GM21AA are intended for the following variants:
- GM1911: India
- GM1917: Global/US Unlocked
GM21AA 是全球版和美版的解锁版
:https://forum.xda-developers.com/t/rom-official-kali-nethunter-for-the-oneplus-7-oneplus-7-pro.3976357/
~~ How to Install ~~
- Copy twrp, magisk, Disable_Dm-Verity_ForceEncrypt & NetHunter image to USB-C drive
- Flash TWRP, reboot into TWRP, insert USB drive, flash twrp zip
- Reboot into recovery & format data
- Install “Disable_Dm-Verity_ForceEncrypt” & Magisk
- Reboot to system & finish Android setup
- Reboot into TWRP
- Install NetHunter Image
- Reboot
- Run NetHunter app
- Reboot
~~~ Notes & Updates ~~~
Credits: The Offensive Security Team and the NetHunter community
Android Version: 9.0 & 10.0
一加7Pro(oneplus 7Pro)和一加三安装kali nethunter:https://blog.csdn.net/qwertyuiop2016/article/details/118105155
OnePlus 7 OxygenOS 10.3.8刷入Kali-NetHunter-2022.1成功案例:https://blog.csdn.net/lijiewen2017/article/details/123710254
3、vnc 连接 nethunter
:https://www.bilibili.com/read/cv13770199/
vnc setting localhost:1 port 5901(注意啦这点可能每个人的不一样,在终端中设置vnc密码的时候,平常后会出现个数字,大概像1,2,3,4这样的),类似的。port就应为5901,5902,5903。
下一行随便写,输入你刚才设置的6位vnc密码。,点击connect,然后就可以出现图形化界面。 作者:skilfulweiter https://www.bilibili.com/read/cv13770199/ 出处:bilibili
vnc 软件可以使用:MobaXterm Professional
下载地址:MobaXterm Professional:http://www.3h3.com/soft/263306.html
手机上打开 nethunter,点击 kex Manager
MobaXterm Professional 选择 VNC 进行连接
4、调整目录空间大小
在使用 CentOS6.5 版本 linux 系统的时候,发现 根目录(/) 的空间不是很充足,而其他目录空间有很大的空闲,所以本文主要是针对现在已有的空间进行调整。首先,先来查看一下系统的空间分配情况:
[[email protected] java]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_innoplay01-lv_root 50G 2.0G 45G 5% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda1 485M 40M 421M 9% /boot
/dev/mapper/vg_innoplay01-lv_home 860G 200M 816G 1% /home
下面的详细步骤部分将从 /dev/mapper/vg_innoplay01-lv_home 分区下取出 661G 的空间添加到 /dev/mapper/vg_innoplay01-lv_root 分区上去。
卸载/dev/mapper/vg_innoplay01-lv_home分区:( 卸载之前可以先备份数据 )
[[email protected] java]# umount /home
此时在用 df 命令查看将会发现 /home 目录已经看不见了,如下所示:
[[email protected] java]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_innoplay01-lv_root 50G 2.0G 45G 5% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda1 485M 40M 421M 9% /boot
从新设定/dev/mapper/vg_innoplay01-lv_home的大小:
resize2fs -p /dev/mapper/vg_innoplay01-lv_home 210G
[[email protected] java]# resize2fs -p /dev/mapper/vg_innoplay01-lv_home 210G
resize2fs 1.41.12 (17-May-2010)
Please run 'e2fsck -f /dev/mapper/vg_innoplay01-lv_home' first.
依照提示执行:
e2fsck -f /dev/mapper/vg_innoplay01-lv_home
[[email protected] java]# e2fsck -f /dev/mapper/vg_innoplay01-lv_home
e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mapper/vg_innoplay01-lv_home: 11/57237504 files (0.0% non-contiguous), 3643567/228918272 blocks
[[email protected] java]# resize2fs -p /dev/mapper/vg_innoplay01-lv_home 210G
resize2fs 1.41.12 (17-May-2010)
Resizing the filesystem on /dev/mapper/vg_innoplay01-lv_home to 55050240 (4k) blocks.
Begin pass 2 (max = 32768)
Relocating blocks XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 3 (max = 6987)
Scanning inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on /dev/mapper/vg_innoplay01-lv_home is now 55050240 blocks long.
检查是否成功:
[[email protected] java]# mount /home
[[email protected] java]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_innoplay01-lv_root 50G 2.0G 45G 5% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda1 485M 40M 421M 9% /boot
/dev/mapper/vg_innoplay01-lv_home 207G 188M 197G 1% /home
将/dev/mapper/vg_innoplay01-lv_home逻辑分区减小到指定大小:
lvreduce -L 210G /dev/mapper/vg_innoplay01-lv_home
[[email protected] java]# lvreduce -L 210G /dev/mapper/vg_innoplay01-lv_home
WARNING: Reducing active and open logical volume to 210.00 GiB
THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce lv_home? [y/n]: y
Reducing logical volume lv_home to 210.00 GiB
Logical volume lv_home successfully resized
查询卷组的信息:
vgdisplay
[[email protected] java]# vgdisplay
--- Volume group ---
VG Name vg_innoplay01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 931.02 GiB
PE Size 4.00 MiB
Total PE 238341
Alloc PE / Size 68548 / 267.77 GiB
Free PE / Size 169793 / 663.25 GiB
VG UUID SyMjnp-iGwM-MkT1-UBUM-rSx8-hviz-EzTUEr
Free PE / Size指定的应该是现在可在分配的空间。
增加/dev/mapper/vg_innoplay01-lv_root分区的大小:
lvextend -L +661.00G /dev/mapper/vg_innoplay01-lv_root
[[email protected] java]# lvextend -L +661.00G /dev/mapper/vg_innoplay01-lv_root
Extending logical volume lv_root to 711.00 GiB
Logical volume lv_root successfully resized
从新设定该分区的大小:
resize2fs -p /dev/mapper/vg_innoplay01-lv_root
[[email protected] java]# resize2fs -p /dev/mapper/vg_innoplay01-lv_root
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/mapper/vg_innoplay01-lv_root is mounted on /; on-line resizing required
old desc_blocks = 18, new_desc_blocks = 45
Performing an on-line resize of /dev/mapper/vg_innoplay01-lv_root to 186384384 (4k) blocks.
The filesystem on /dev/mapper/vg_innoplay01-lv_root is now 186384384 blocks long.
再次查看分区大小:
[[email protected] java]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_innoplay01-lv_root 700G 2.0G 663G 1% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda1 485M 40M 421M 9% /boot
/dev/mapper/vg_innoplay01-lv_home 207G 188M 197G 1% /home
注意点:
1、在卸载/home目录的时候失败,可先执行如下fuser命令,然后再umount即可:fuser -m /home ;
2、设定完lv_home的大小,再次mount该分区时,发现用df命令无法看到给分区,此时只要在mount一次即可;
3、在设定lv_root的大小时,不要把Free PE / Size的空间全部都用上,这很可能会出现Free PE空间不足的现象,建议保留一点Free PE的空间。