Browser

Change the User-Agent by inspecting the element.
Go to Network > three vertical dots at extreme right corner of network window > More Tools > Network Condition.
Change the User-Agent as requested and simply refresh the page.

Bravo!

PS. curl -A “User-Agent Here” http:// url .com

Advertisements

KillSwitch for VBS Scripts

Create a batch with the following line:

taskkill /F /IM wscript.exe /T

HOW TO CREATE A BATCH FILE?
wait, how did you learn vbs scripting without learning batch scripting in the first place? Nevermind 😉

  • Open Notepad.
  • Type the above command
  • Save it as “yummm.bat” [replace yummm with any name, but make sure to have .bat in the end]
  • CHANGING MAC ADDRESS

    ON Windows, Linux & MacOS

    MacOS
    1. Find the existing MAC Address for your WiFi adapter
    2. Generate a random MAC Address
    3. Assign the new MAC Address

    ifconfig en0 | grep ether
    openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
    sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx
    

    Windows
    We use PowerShell for this.
    1. Find the existing MAC Addresses
    I haven’t yet figured an easy way to generate a random MAC Address in PowerShell, so you need to have a MAC Address prior to this.
    2. Assign the new MAC Address

    Get-NetAdapter
    Set-NetAdapter -Name “WiFi” -MacAddress “de:be:ef:c0:fe”
    

    NOTE:
    The term “WiFi” is the name of my WiFi Adapter.
    Your computer might have a different name, which you can find when you type Get-NetAdapter command.

    Linux
    coming soon…

    USEFUL COMMANDS

    Credit: jshaw87

    Grab HTTP Headers

    curl -LIN <host>

    Quickly generate an MD5 hash for a text string using OpenSSL

    echo -n 'text to be encrypted' | openssl md5

    Shutdown a Windows machine from Linux

    net rpc shutdown -I ipAddressOfWindowsPC -U username%password

    Determine if a port is open with bash

    (: </dev/tcp/127.0.0.1/80) &>/dev/null && echo "OPEN" || echo "CLOSED"

    Telnet into my Router

    I discovered I can telnet into my router 😉

    Connecting to a specific FTP…

    Connecting to a specific FTP port in Command Prompt

    Screenshot (401)

    POWERSHELL COMMANDS

    [This post will be updated whenever useful commands are found in the temporary memory of my brain]

    Serial Port Information
    [System.IO.Ports.SerialPort]::getportnames()

    Changing MAC Address
    Get-NetAdapter
    Set-NetAdapter -Name “” -MacAddress “
    Capture

    Cheers
    -l