sudo airmon-ng start wlan1
sudo airodump wlan1mon --band a # a band 5ghz
or
| apt update | |
| apt full-upgrade -y | |
| apt install terminator ltrace strace flameshot zram-tools keepassxc seclists bloodyad | |
| Download | |
| netexec | |
| 010 Editor | |
| Change password | |
| Clean up toolbar |
| ASCII to Decimal conversion | |
| C ---> Decimal | |
| : %c ---> 58 32 37 99 | |
| : %d ---> 58 32 37 100 | |
| : %f ---> 58 32 37 102 | |
| : %i ---> 58 32 37 105 | |
| : %s ---> 58 32 37 115 | |
| : ---> 58 |
| # Scenario 1 - smaller to larger drive | |
| 1. boot Clonezilla | |
| 2. Choose second option - Clonezilla live (VGA 800x600 & To RAM) | |
| 3. follow prompts for source and destination disks | |
| # Scenario 2 - larger to smaller drive | |
| 1. Boot gparted livecd | |
| 2. shrink source partition to smaller than destination | |
| 3. boot shrunk drive and check filesystem with native OS tool | |
| 4. see scenario 1 to migrate drive. |
Edit file
sudo vim /etc/systemd/system.conf
Modify
DefaultTimeoutStartSec=20s
DefaultTimeoutStopSec=20s
| Start recording process | |
| ``` | |
| psr.exe /start /output c:\my\path\screenshots.zip /sc 1 /gui 0 | |
| ``` | |
| Stop recording process | |
| ``` | |
| psr.exe /stop | |
| ``` |
| # Similiar to unix command uptime | |
| $bootTime = Get-CimInstance -ClassName win32_operatingsystem | Select-Object -ExpandProperty LastBootUpTime | |
| $currentTime = Get-Date | |
| $uptime = $currentTime - $bootTime | |
| $days = $uptime.Days | |
| $hours = $uptime.Hours | |
| $minutes = $uptime.Minutes | |
| $users = (quser).Count-1 | |
| if ( $users -lt 0 ) { | |
| $users = 0 |
| install-windowsfeature -name WindowsPowerShellWebAccess -computername server1 -includemanagementtools -restart | |
| install-pswawebapplication -usetestcertificate | |
| add-pswaauthorizationrule -username * -computername * -configurationname * | |
| set-item wsman:\localhost\Client\TrustedHosts -Value 'localhost,server1,10.10.10.1' -force | |
| enable-psremoting -force | |
| # Goto URL https://localhost/pswa | |
| # Login username format | |
| # localhost\theuser |
| # myservice.service | |
| [Unit] | |
| Description=Python HTTP server /tmp port 4848 | |
| Documentation=man systemd.service | |
| After=network.target #myservice.service requires networking be up first | |
| [Service] | |
| User=sam | |
| ExecStartPre=sh -c 'echo TRUE > /tmp/TRUE'#not required, just an example | |
| ExecStart=/usr/bin/python3 -m http.server -d /tmp 4848 |