Sliim / pentest-env

Pentest environment deployer (kali linux + targets) using vagrant and chef.
http://sliim.github.io/pentest-env/
GNU General Public License v3.0
631 stars 169 forks source link

Not seeing additional target VMs #15

Closed weklund closed 8 years ago

weklund commented 8 years ago

Not sure what the issue is, after following your instructions starting from 'Installation' wiki then 'Customizations' - pretty sure it's something I've done wrong

Everytime I type vagrant status on my host Windows 10 machine in the git root, I only get the Kali VM and not the dvwa target I setup. Here's the .pentestrc

terminal on guest

If it helps, I can't seem to find anything at ~/.pentest.d/scripts or ~/.pentest.d/targets

Sliim commented 8 years ago

Hi,

You should have your .pentestrc and .pentest.d setup in your windows host machine, not in the kali instance. Here I see you have setup pentest-env in the kali vm, and want use it in your windows host. So vagrant on your host machine cannot read your setup and use the default configuration instead, that's why you have not your additional target.

Try using a pentestrc in your windows machine, I'm not sure it works out of the box with windows host because I have never tested this OS. In case it's not working, keep me updated I will look to add compatibility, you can also send a pull request :)

weklund commented 8 years ago

Trying to skip two lines because of possible OS issue, from my little knowledge of Ruby, I don't have to specify the target path because it'll default in the target.rb line 39. So would this work?

alt text

Yea I'm still having trouble after I've moved the file is on the host side.

Sliim commented 8 years ago

Yes, just move .pentestrc in your home: ~/.pentestrc it should works

weklund commented 8 years ago

We're getting closer! haha

img

img

Sliim commented 8 years ago

You missed comma in your array of target:

targets: [dvwa, metasploitable, primer]

or

targets: 
  - dvwa
  - metasploitable
  - primer

This is YaML syntax.

About t.chomp: http://ruby-doc.org/core-2.3.0/String.html#method-i-chomp It ensure there is no unwanted newline in the target name

Sliim commented 8 years ago

P.S. Please stop posting image, copy/past backtraces/errors/debug instead. Thx

weklund commented 8 years ago

I GOT IT.

I broke it when I was tindering with the ruby code, then when I moved .pentestrc to host machine home root it wasn't working until I reverted everything.

I think I initially got hung up on the Customizations page, since you showed linux commands I assumed you were referring to guest machine since I'm on Windows

Thanks for all your help and sorry to be a bother on my mistake.

Sliim commented 8 years ago

No problem, happy to see you resolved your issue :)