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
int get(char *szUrl, char *recv_data, DWORD recv_size) { | |
DWORD NumberOfBytesRead = 0; | |
RtlZeroMemory(recv_data, recv_size); | |
HINTERNET connect = InternetOpen("browser", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0); | |
if (connect) { | |
HINTERNET openAddr = InternetOpenUrl(connect, szUrl, NULL, 0, INTERNET_FLAG_PRAGMA_NOCACHE | INTERNET_FLAG_KEEP_CONNECTION, 0); | |
if (openAddr) { |
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
RANGE=$1 | |
PORT=$2 | |
nmap $RANGE -p $PORT -v -n | awk '/is up/ {print up}; {gsub (/\(|\)/,""); up = $NF}' > out.txt |