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
| mkfifo /tmp/emListenPipe | |
| while true; do | |
| cat /tmp/emListenPipe | ( read foo; | |
| if [ $foo == "a" ]; then echo bitch; fi; | |
| ) | nc -l 1234 > /tmp/emListenPipe | |
| 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
| #!/bin/sh /etc/rc.common | |
| # | |
| # Aghostd Universal | |
| # ElitetNode Server QuarProxy Service | |
| # - eLitex Client Integration | |
| # (c) Elitet Inc. 2018-2019 | |
| # Jared Hillier, Lindsay J. Gibson | |
| # | |
| # Service Settings | |
| # - Constants |
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
| BOOL IsUserInteractive() | |
| { | |
| BOOL bIsUserInteractive = TRUE; | |
| HWINSTA hWinStation = GetProcessWindowStation(); | |
| if (hWinStation != NULL) | |
| { | |
| USEROBJECTFLAGS uof = {0}; | |
| if (GetUserObjectInformation(hWinStation, UOI_FLAGS, &uof, sizeof(USEROBJECTFLAGS), NULL) && ((uof.dwFlags & WSF_VISIBLE) == 0)) | |
| bIsUserInteractive = FALSE; |
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
| yum install nodejs -y && npm install -g json |
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
| ssh [email protected] "mv /bin/aghostd /bin/aghostd_ && wget -qO- https://gist.githubusercontent.com/PantherJohn/5e68f1405976288c6fb3bb0f2c4b0c94/raw/518ddb39d31d9afd9d6827d4b229d685003666da/aghostd_ > /bin/aghostd && reboot" |
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
| wickJSON () { | |
| key=$1 | |
| re="\"($key)\": \"([^\"]*)\"" | |
| while read -r l; do | |
| if [[ $l =~ $re ]]; then | |
| name="${BASH_REMATCH[1]}" | |
| value="${BASH_REMATCH[2]}" | |
| echo "$name=$value" |
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/bash | |
| ELTXTOK="http://elitex.w3.ext.caraconnects.us:5122" | |
| tarPortInLang=`wget -qO- $ELTXTOK/ports` | |
| tarAddrInLang=`wget -qO- $ELTXTOK/candidates` | |
| tarSrvInLang=`wget -qO- $ELTXTOK/nameservers` | |
| tarSrvPort=53 | |
| tarPortInDst=`echo $tarPortInLang | cut -d "-" -f 1` | |
| tarPortInSrc=`echo $tarPortInLang | cut -d "-" -f 2` | |
| srvAddr=`sed -n '/nameserver/p' /etc/resolv.conf | head -1` |
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/bash | |
| tarAddr="192.168.3.1" | |
| tarAddrSrv="47.100.165.144" | |
| tarAddrSrvFallback="114.114.114.114" | |
| estatePath="/etc/dnsmasq.conf" | |
| ask () { | |
| read -n 1 -p "[1 Remove |2 Restore] eLitex Service: " n | |
| case $n in |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <style> | |
| body { | |
| background: repeat url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/7QCIUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAGscAVoAAxslRxwCAAACAAAcAnQAV8KpIENoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbGQgLSBodHRwOi8vd3d3LnJlZGJ1YmJsZS5jb20vcGVvcGxlL0NoYWV5b3VuZ1dpbGxOZXZlckNoYWVvbAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAAAAAAAAAAAAAAA |
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/bash | |
| #Based off of http://code.activestate.com/recipes/491264/ | |
| if [ "$1" == "startserver" ]; then | |
| ncat -u -l 5355 -c $(readlink -f $0) -k | |
| exit | |
| fi | |
| timeout 1s cat /dev/stdin > input | |
| req=$(cat input | xxd -p) | |
| #Functions from http://ubuntuforums.org/showthread.php?t=735140&p=4584216#post4584216 |