W32time: What Time Server info is on the box

While looking for Net time commands I came across this gem of a utlity: w32tm


w32tm /query /configuration
w32tm /query /status
Time /T
w32tm /query /configuration gives you the configuration you have set up.

w32tm /query /status


Using CAT as a Text Editor

When there’s only the CAT command this is how you use it as a text editor:

$cat > Filename

Then, in the console, write the text. When you’re done press CTRL+D

Opening the file, you’ll find its contents is your entered text. Careful you don’t overwrite an existing file.


Samurai WTF

Download and install Samurai for VMWARE Workstation (

Unzip and double click on the *.vmx file

Default Username/password: samurai/samurai

Samurai has vulnerable websites:

  • Dojo-Basics
  • BwAPPs
  • DVWA
  • Mutillidae

Allow network access to the them by modifying the *.conf files which can be found /etc/apache2/sites-available.

To open the file use this command: sudo gedit bwapp.conf

Check to see which services are running on which ports by using this command: grep -ri listen /etc/apache2

Modify the IP address from <IP>:<port> to *.<port>

Save the files

Restart Apache using this command: /etc/init.d/apache2 restart

This error means more than one service is running on the same ports



Change Resolution size in Kali using Command Line

To change the screen resolution in Kali using the Terminal type



Then choose your desired dimension by typing

xrandr -s 1280×768


WordPress XMLRPC.php DDOS Attack

The Bigger They Come, The Harder They Fall

Earlier this year a vulnerability was exploited which used the PingBack feature in WordPress.  I am going to show how to create a request to recreate the attack.  The attack send upwards of 400 Gbps through the internet. By comparison you’re home network is, on a good day, theoretically 100 Mbps. This attack pumped 40x more traffic than your home network can ever do.


I created the request in BURP PROXY:

Capture (1)

POST /xmlrpc.php HTTP/1.0
Content-Type: text/xml
<?xml version=”1.0″?>

See a List of Users in Linux

cat /etc/passwd | cut -d":" -f1

Install Kali on USB using Macbook Air

So I’m trying to install Kali on a Kingston USB 8Gb stick

  1. Download Kali from here
  2. I then used Disk Utility on the Mac to create 2 partitions

Disk Utility


  1. Create Folder Structure on USB
    • EFI/BOOT
  2. Unmount the Kingston usb stick
    • “sudo diskutil unmount /dev/disk1”
    • or “sudo diskutil unmountDisk /dev/disk1”
  3. Copy these files to BOOT Folder
  4. Copy ISO to USB
    • sudo dd if=/path/to/ISO of=/dev/rdisk1 bs=1m
    • Ctrl+t shows the progress



socat -v TCP-LISTEN:8091,reuseaddr,fork TCP:

WebServer on Mac

in Terminal:

  1. Start: apachectl start
  2. Stop: apachectl stop
  3. Restart: apachectl restart

Default File Location:

  • /Library/WebServer/Documents/index.html.en

Opening a file from the Terminal in Mac

sudo open -a <app> <file>