Skip to content

Instantly share code, notes, and snippets.

@jstrosch
Created March 13, 2018 15:50
Show Gist options
  • Save jstrosch/e41bbb998bf6bf6134cf7f06100fc52e to your computer and use it in GitHub Desktop.
Save jstrosch/e41bbb998bf6bf6134cf7f06100fc52e to your computer and use it in GitHub Desktop.
Example using InternetOpen and InternetOpenUrl
#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