Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

How to validate a web login towards a textfile if not suceed try again.

(Jan 17, 2018 09:47 PM)0xDEAD10CC Wrote:  You don't see how this:
Code
foreach (string u in UserList)
   foreach (string p in PasswordList)
...
Is different than what you're doing? ❓

Take a look again... "For every user, test every password"

It's not matching a username to a single password.


i see very well what that is doing, that's exactly why i told him and given him code not to do it. 
there is absolutely no reason to have usernames and passwords separate, not only is it not efficient it's also gonna be a lot of work splitting combos into two manually

edit: oh wtf lol i just realized, you're right
How can that be more effeciently with a combolist?

for instance:

myuser:mypassword1234

When I use the combo-list in the login then it's just gonna check 'myuser' against the password 'mypassword1234',

meanwhile you loop for every 'user' through all passwords in password-list?

Thank you in advance

Have a nice day =)
Best Regards

( ͡° ͜ʖ ͡°)

(Jan 18, 2018 12:13 AM)Onii Wrote:  i see very well what that is doing, that's exactly why i told him and given him code not to do it. 
there is absolutely no reason to have usernames and passwords separate, not only is it not efficient it's also gonna be a lot of work splitting combos into two manually

edit: oh wtf lol i just realized, you're right

You could split the combo when loading it in into 2 separate string arrays. Though this is going to be a problem when the list is huge. That could be solved with a memory mapped file or a binary reader, but that seems like a lot of work for a problem that could be fixed by making it load 2 separate lists.
(Jan 18, 2018 03:11 AM)Ninja Wrote:  You could split the combo when loading it in into 2 separate string arrays. Though this is going to be a problem when the list is huge. That could be solved with a memory mapped file or a binary reader, but that seems like a lot of work for a problem that could be fixed by making it load 2 separate lists.

That is one of the reasons notice this is suppost to be just a simple test project cause I am new to c#

Have a nice day =)
Best Regards

( ͡° ͜ʖ ͡°)



Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by 991z3r0Aug 13, 2019 11:35 AM 2 122 Aug 13, 2019 11:35 AM
Last Post: 991z3r0
[.NET] by MalwareMopAug 7, 2019 02:18 PM 0 141 Aug 7, 2019 02:18 PM
Last Post: MalwareMop
[C#] by TunabishJun 16, 2018 12:00 PM 9 302 Jun 16, 2018 12:00 PM
Last Post: 0xDEAD10CC