dimanche 14 août 2016

Open website with C and search through source code

I made a program in C that is supposed to try a bunch of numbers on a url, like this:

example.com/cbc001 ...com/cbc002

The program runs throught from 000 to 999 and is supposed to add those numbers after the 3 letters in the url. I managed to get the program to run through all numbers, 000-999.

Now my problem is I have no idea how to open a website in C, and I don't really want to open it in a browser, what I just need is the program to try all those urls ".com/abc990" and then I want to check the source file of the webpage to search for a certain word.

How could I approach this?

Aucun commentaire:

Enregistrer un commentaire