Hack Forums
[C#] Need Help (C# Netflix Generator Checker) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Need Help (C# Netflix Generator Checker) (/showthread.php?tid=4855575)



Need Help (C# Netflix Generator Checker) - xvipercodes - Jun 7, 2015

Well, I made a netflix gen but you know, some accounts aren't valid...

I don't know how to make it automatically check them...
(Click generate and provide a working once that's been checked)

Or If I have too, make a console app where you put in the email and pass, press enter and it tells you if it is valid or not...

I really need help with this, thanks in advance.
I seen some post and some sources, but there useless for what I'm trying to do.


* - SL x TnT - Jun 8, 2015

This isn't really a problem you can Google as a whole, but you can Google individual steps.

What you need to do is attempt to log into Netflix using the username and password. Use something like fiddler or firebug to monitor the requests when you attempt to login using a browser. You'll need to replicate those requests.

I've never had a need to mess with Netflix, but I'm going to guess it'll be something like this.

- Grab login page and scrape auth token / credentials. It seems like most large websites use it.
-- Make sure you use the same CookieContainer for all requests.
- Send a POST request to the correct login url with all data. If they add any custom headers, make sure to add those in. Don't forget to add a useragent that's used by a normal web browser. There's some websites that refuse requests without that.
- Check for something unique to a successful login.

https://msdn.microsoft.com/en-us/library/system.net.webclient%28v=vs.110%29.aspx
That should help.


* - xvipercodes - Jun 8, 2015

(Jun 8, 2015 02:04 AM)SL x TnT Wrote:  This isn't really a problem you can Google as a whole, but you can Google individual steps.

What you need to do is attempt to log into Netflix using the username and password. Use something like fiddler or firebug to monitor the requests when you attempt to login using a browser. You'll need to replicate those requests.

I've never had a need to mess with Netflix, but I'm going to guess it'll be something like this.

- Grab login page and scrape auth token / credentials. It seems like most large websites use it.
-- Make sure you use the same CookieContainer for all requests.
- Send a POST request to the correct login url with all data. If they add any custom headers, make sure to add those in. Don't forget to add a useragent that's used by a normal web browser. There's some websites that refuse requests without that.
- Check for something unique to a successful login.

That should help.

I had done that with some help from a friend, but the way he did it, was a console application that would take a .txt and check all the accounts within the .txt then generate a new one with all the working ones.


* - Rawrrasaurus - Jun 8, 2015

I am not sure how your program is setup, but I presume you are not getting the list of accounts from your own Server? If you are, then you would need to implement an automatic checker to do this for you (So the list is as up-to-date as possible).

If your program does not contact a separate server that you control, then you just do exactly what TnT explained. You could do this several different ways...you may want to have the program check the entire list on a button press, and then remove those that were unsuccessful. Then, when the User generates an account, you can check the account once more before displaying. Doing it this way would ensure the User would have to wait much less in the long run.


* - SilentCode - Jun 8, 2015

Okay, I have a netflix gen and I got faced with the same problem, heres what you can do :

- host your generators .php files( Url/data.php?Action=generate ) (An example)
C# code -
WebClient client = new WebClient ;
String account = client.DownloadString( Url/data.php?Action=generate) ;
String[] a = account.Split(':');
String username = a[0] ;
String password = a[1] ;

- Now use SentryMBA or something similar to get the POST DATA for the Netflix Website
- Setup a webrequest and send in the username and password( note the success/failure keys btw)
- search response for successs key,
if ( success = true )
{
textbox1.text = account ;
}