PentestBox配置
ssooking Lv5

aliases目录

由于pentestbox中默认cd命令在windows环境下需要cd后,再手动换盘很麻烦。自定义下cd完成直接跳转盘符。

1
cd= cd /d $*

还可以把经常要去的目录写成命令:

1
etool=cd /d "E:/tools"

设置默认打开目录

打开设置,选择Startup-Task,增加窗口任务MyShells::cmd_Bin,把

1
2
3
4
# 任务参数
/icon "%pentestbox_ROOT%\PentestBox.exe"

cmd /k "%ConEmuDir%\..\..\config\init.bat" -cur_console:d:%pentestbox_ROOT%\bin {MyShells::cmd_Bin}

设置右键当前目录打开conemu

  1. 打开Settings

  2. 选择Intergration选项

  3. 先在Startup-Task中添加{MyShells::cmd_Box},启动命令

    1
    cmd /k "%ConEmuDir%\..\..\config\init.bat"  -new_console:a
  4. 在command:{cmd} -cur_console:n中修改cmd为你喜欢的shell,如{MyShells::cmd_Box} -cur_console:n

  5. 点击第一个Register就ok了

命令行不显示中文

PentestBox使用的是ConEmu命令行。

ConEmu命令行ls无法显示中文,解决:

  1. 打开settings面板,找到Startup -> Envrioment选项
  2. 在下面的文本框里添加一行:set LANG=zh_CN.UTF-8

命令补全

PentestBox使用clink来实现自动补全。默认不启用,需要去setting-Features中启用它。

下载clink,然后解压到E:\PentestBox\vendor\conemu-maximus5\ConEmu\clink路径即可

共享系统环境变量

修改PentestBox\config\init.bat配置文件手动添加path

1
2
3
4
5
:: Enhance Path
@set git_install_root=%pentestbox_ROOT%\base\PortableGit
@set powershell_system=C:\Windows\System32\WindowsPowerShell\v1.0
@set win32_wmic_system=C:\Windows\System32\wbem
@set PATH=C:\Windows;C:\Windows\System32;C:\Windows\SysWOW64;%win32_wmic_system%;%win32_wmic_system%WMIC.exe;%powershell_system%;%pentestbox_ROOT%\bin;%pentestbox_ROOT%\bin\ScriptTools;%git_install_root%\bin;%git_install_root%\mingw32\bin;%git_install_root%\usr\bin;.......
  • Post title:PentestBox配置
  • Post author:ssooking
  • Create time:2020-01-25 13:19:00
  • Post link:https://ssooking.github.io/2020/01/pentestbox配置/
  • Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.