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
| #!/bin/sh | |
| PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/nvtl/bin:/opt/nvtl/data/branding/bin | |
| # Place in /etc/rc.local | |
| for script in /etc/rc.local.d/*; do | |
| if [ -x $script ]; then |
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
| #!/bin/sh | |
| # INIT script for starting rc.local > rc.local.d | |
| # Placed in /etc/init.d/rc_local.sh | |
| #set -x | |
| case "$1" in | |
| start) | |
| echo -n "Starting rc.local: " | |
| /bin/sh /etc/rc.local | |
| 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
| client | |
| dev tun | |
| persist-tun | |
| persist-key | |
| ncp-ciphers AES-128-GCM:AES-256-GCM | |
| cipher AES-128-GCM | |
| auth SHA1 | |
| tls-client | |
| resolv-retry infinite | |
| remote some-server.internal 1196 |
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
| client | |
| dev tun | |
| persist-tun | |
| persist-key | |
| ncp-ciphers AES-128-GCM:AES-256-GCM | |
| cipher AES-128-GCM | |
| auth SHA1 | |
| tls-client | |
| resolv-retry infinite | |
| remote some-server.internal 1196 |
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
| #!/bin/sh | |
| PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/nvtl/bin:/opt/nvtl/data/branding/bin | |
| ## PoC Exploit payload for the Open VPN implementation RCE on Inseego M2000 (Novatel) | |
| # Append the following to .opvn to be uploaded to the Inseego m2000, full paths must be used | |
| # | |
| # tls-verify "/path/to/bin/executable" | |
| # | |
| # ^ That's 5 spaces or a <TAB> ^ |
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
| #!/system/bin/sh | |
| if [ -z ${INTERACTIVE} ]; then | |
| until [[ $(getprop sys.boot_completed) = 1 ]] && [[ $(getprop dev.bootcomplete) = 1 ]] && [[ $(getprop service.bootanim.exit) = 1 ]] && [[ $(getprop init.svc.bootanim) = stopped ]]; do | |
| sleep 5 | |
| 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
| $host.ui.RawUI.WindowTitle = "NTAUTHORITY\SYSTEM - Tailscale Debugging" | |
| $ErrorActionPreference = "Continue" | |
| $host.ui.RawUI.BackgroundColor = "Black" | |
| $host.ui.RawUI.ForegroundColor = "Red" | |
| $RootPath = $PWD.Path | |
| cd ".\" | |
| $UserName = (whoami) |
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
| ## I am a custom Script for logging TailScale in on boot using tsPreAuthKey attribute stored in AD Schema | |
| # This requires permanent modification to the schema for storing the PreAuthKey: | |
| # https://www.rebeladmin.com/step-step-guide-create-custom-active-directory-attributes/ | |
| # https://legacy.support.exclaimer.com/hc/en-gb/articles/360028648572-How-to-create-new-custom-AD-attributes-for-use-in-a-signature-template | |
| # Do NOT issue re-useable PreAuthTokens and store in AD, that would be foolish, storing them period might be ;)) | |
| # Execute me as a Computer policy based powershell startup script | |
| # Schduled task is also an option, may not work on first run | |
| # | |
| $env:Path = 'C:\Program Files\Tailscale;' + $env:Path |
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
| ## I am a custom Script for logging TailScale in on boot using tsPreAuthKey attribute stored in AD Schema | |
| # Now I double as an executable via ps12exe that gets installed via an inno setup wizard | |
| # This requires permanent modification to the schema for storing the PreAuthKey: | |
| # https://www.rebeladmin.com/step-step-guide-create-custom-active-directory-attributes/ | |
| # https://legacy.support.exclaimer.com/hc/en-gb/articles/360028648572-How-to-create-new-custom-AD-attributes-for-use-in-a-signature-template | |
| # Do NOT issue re-useable PreAuthTokens and store in AD, that would be foolish, storing them period might be ;)) | |
| # Execute me as a Computer policy based powershell startup script | |
| # Schduled task is also an option, may not work on first run | |
| # | |
| $ErrorActionPreference = "SilentlyContinue" |