Mapping a byte array to a struct in C https://snipplr.com/view/1254/ https://stackoverflow.com/questions/12790820/reading-a-memory-mapped-block-of-data-into-a-structure
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
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
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
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
#!/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
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
https://oldwiki.archive.openwrt.org/toh/netgear/wnr2000v4 |
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
/* | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
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
# | |
# Aghostd Universal | |
# ElitetNode Server QuarProxy Service | |
# - Optimized Configuration | |
# | |
# (c) Elitet Inc. 2018-2019 | |
# Jared Hillier, Lindsay J. Gibson | |
# | |
# sysctl settings are defined through files in | |
# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/. |