Created
March 13, 2018 15:50
-
-
Save jstrosch/e41bbb998bf6bf6134cf7f06100fc52e to your computer and use it in GitHub Desktop.
Example using InternetOpen and InternetOpenUrl
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <windows.h> | |
#include <winsock.h> | |
#include <wininet.h> | |
#pragma comment (lib, "wininet.lib") | |
HANDLE iH; | |
HANDLE iR; | |
int main(void) { | |
iH = InternetOpen("Mozilla/4.1337",INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL, 0); | |
iR = InternetOpenUrl(iH, "http://0xevilc0de.com", 0, 0, INTERNET_FLAG_RAW_DATA, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment