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 | |
iface="wlan0" | |
wpacfg="/tmp/wifizwpasup" | |
wpapid="/tmp/wifizwpapid" | |
dhcpid="/tmp/wifizdhcpid" | |
stop() { | |
if [ -e "$wpapid" ]; 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
sh -c "cur=\$\$; while true; do cur=\"`ps -o ppid= -p \$cur | sed -e 's/^ *//g'`\"; exe=\"`readlink /proc/\$cur/exe`\"; echo \$exe; test -z \"\$exe\" && break; done" | awk '{ a[i++] = $0 } END { for (j = i - 2; j >= 0;) print a[j--] }' |
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
; | |
; Command line CRC32C calculation utility for Linux using SSE4.2 CRC32C instruction. | |
; | |
; TODO | |
; - Probably fails quite miserably if cpu does not have crc32c instruction. | |
; - Fails miserably if attempting to hash a folder. | |
; | |
%define BUFSIZE 4096 ; Must be not TOO tiny cause output string is also written there. |
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
%define BUFSIZE 4096 | |
bits 32 | |
section .text | |
extern fdopen | |
extern fprintf | |
extern printf |