Blog: 2023-08-11

From razwiki
Revision as of 01:39, 11 August 2023 by Razzi (talk | contribs)
Jump to navigation Jump to search

I got vagrant running on wsl using virtualbox as a provider - the problem was my firewall https://github.com/Karandash8/virtualbox_WSL2/issues/1

Disabling the firewall entirely worked, so then I figured I'd try the powershell script to only modify the virtualbox one. but then I got an error about vagrant versions differing on windows and wsl, which is weird to me since I imagine it shouldn't matter which side has which virtualbox version.

I briefly looked into bumping the version of vagrant that ubuntu has, and got as far as cloning the ubuntu packaging repository:

git clone https://git.launchpad.net/ubuntu/+source/vagrant ubuntu-vagrant

Once I opened that, I noticed the commit referenced `git-ubuntu import`. Not sure what this is, and hard to google

Ok much hacking later, working on getting a ronin box going. While waiting for a machine, remembered THC root machines, and tried to ssh:

ssh [email protected]

It prompts for a password, which is simply "segfault", but I don't want to type that. Googling around gave this great pexpect script https://serverfault.com/a/241589/311519

#!/usr/bin/expect -f
#  ./ssh.exp password 192.168.1.11 id
set pass [lrange $argv 0 0]
set server [lrange $argv 1 1]
set name [lrange $argv 2 2]

spawn ssh $name@$server
match_max 100000
expect "*?assword:*"
send -- "$pass\r"
send -- "\r"
interact

Works great!