Pentestbox doesn't recognize any comands.

2,163 views
Skip to first unread message

Starwarsfan 2099

unread,
Nov 26, 2016, 10:40:05 AM11/26/16
to PentestBox Forum
When Pentestbox launches, I receive this in the terminal:

  'doskey' is not recognized as an internal or external command, operable program or batch file.
  'doskey' is not recognized as an internal or external command, operable program or batch file.

Also, none of the commands work,they return:
  'sqlmap' is not recognized as an internal or external command, operable program or batch file.

I am using using the latest version with Metasploit.

Aditya Agrawal

unread,
Nov 28, 2016, 12:37:51 PM11/28/16
to PentestBox Forum
Sorry for the late reply. 

You are facing this problem because command prompt cannot find doskey. 

You can either add doskey.exe in bin folder or add C:\System\Windows32\ to the system path.
Let me know if that doesn't fix that issue.

Thanks
Aditya Agrawal

Starwarsfan 2099

unread,
Nov 28, 2016, 10:57:54 PM11/28/16
to PentestBox Forum
That was it. Sorry for the trouble, I updated Windows and it removed all of my PATH variables. Thanks for the help though!

worklik...@gmail.com

unread,
Dec 1, 2016, 7:34:09 AM12/1/16
to PentestBox Forum
When I open the Pentest box I get the following message on the cmd line

"< was unexpected at this time.

@set PATH=C:\PentestBox\bin;C:\PentestBox\base\PortableGit\bin;C:\PentestBox\base\PortableGit\mingw32\bin;C:\PentestBox\base\PortableGit\usr\bin;C:\PentestBox\base\PortableGit\cmd;C:\PentestBox\base\PortableGit\share\vim\vim74;C:\PentestBox\vendor\conemu-maximus5;C:\PentestBox\vendor\conemu-maximus5\ConEmu;C:\Python27\;C:\Python27\Scripts;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Python27\Scripts;<InterpreterInstallationDir>;<InterpreterInstallationDir>\Scripts\;C:\Python27\Lib\site-packages\wx-2.8-msw-unicode\wxPython\;;C:\selenium_drivers\chromedriver.exe\;C:\GalenFramework\galen-bin-2.3.1\;C:\PentestBox\base\curl\bin;C:\PentestBox\base\python;C:\PentestBox\base\ruby\bin;C:\PentestBox\base\ruby_devkit\bin;C:\PentestBox\base\ruby_devkit\mingw\bin;C:\PentestBox\base\strawberry-perl\perl\bin;C:\PentestBox\base\strawberry-perl\c\bin;C:\PentestBox\base\strawberry-perl\;C:\PentestBox\bin\nmap;C:\PentestBox\base\jdk1.8.0_74\bin;C:\PentestBox\base\jdk1.8.0_74\jre\bin;C:\PentestBox\base\jdk1.8.0_74\jre\lib;C:\PentestBox\bin\aircrack-ng-1.2-rc4-win\bin\32bit;C:\PentestBox\bin\password_attacks\rainbowcrack;C:\PentestBox\bin\androidsecurity\dex2jar;C:\PentestBox\bin\androidsecurity\sdk\platform-tools;C:\PentestBox\base\python\Scripts;C:\PentestBox\bin\7za;C:\PentestBox\bin\wget"

I get the following error when I try to start any tool:-
"anytoolname" is not recognized as an internal or external command, operable program or batch file.

I am using pentest box without Metasploit please help.

Aditya Agrawal

unread,
Dec 1, 2016, 7:46:21 AM12/1/16
to PentestBox Forum
You need to setup doskey in your system, this problem is faced in less than 5% of PentestBox user, i will make sure to fix this by default in next version.

worklik...@gmail.com

unread,
Dec 1, 2016, 8:09:51 AM12/1/16
to PentestBox Forum
can you help me how to set it up?

Purple Rain

unread,
Aug 15, 2017, 6:19:28 PM8/15/17
to PentestBox Forum
I know this post is old but did you fix it?

Manindra Shah

unread,
Sep 16, 2017, 9:04:16 AM9/16/17
to PentestBox Forum
i am having the same problem not a single commands work. Plz let me know what worked out for you

Beyar N

unread,
Nov 18, 2017, 6:40:32 PM11/18/17
to PentestBox Forum
Which is when?

Christian Emenike

unread,
Dec 10, 2017, 5:59:36 PM12/10/17
to PentestBox Forum
I found a temporarly fix.

Open the Command Prompt (cmd),
Go to properties
Then go to Options

Look for "Use legacy console" (requires relaunch) and check it

Then close cmd and restart...everything should be good.


Prashant Bhatt

unread,
Feb 27, 2018, 11:23:04 AM2/27/18
to PentestBox Forum
Hii Aditya,

I am getting a same issue where to add system path or tell me the source to download doskey.exe

Diego Sanches

unread,
May 30, 2018, 4:14:39 PM5/30/18
to PentestBox Forum
Please, try to use this solution who was sended by Christian. I Solved my problem with this solution:
Reply all
Reply to author
Forward
0 new messages