0

I'm planning to research & learn from brute force methods, but all the popular ones I found like John the Ripper or hashcat are written in C & OpenGL which I don't have much knowledge about so far. Can anybody recommend a decent brute force program written in C#, if it includes source code that would be nice.

closed as off-topic by Arminius, S.L. Barth, a CVn, AndrolGenhald, schroeder Aug 9 '18 at 16:48

This question appears to be off-topic. The users who voted to close gave these specific reasons:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Interesting question. C# would probably be a poor choice for a brute force application because of garbage collection, and to use GPU you’d probably need to marshal across to unmanaged libraries. That would be quite slow. C is the language of choice for this type of application because speed is critical for effectiveness. – nbering Aug 9 '18 at 5:46
  • yeah i learn about that recently but i barely knew C or OpenCL for the moment. Is there any specific document instruct you how to write a brute force program in C? – Huang Lee Aug 9 '18 at 5:53
  • 2
    In it’s simplest form, a brute force attack would just be a while loop, testing variations on input. Beyond that, it gets much more complex depending on the system you are attacking. I don’t have a recommendation, but you might want to just learn to use the tools and why they work before trying to reverse engineer them. – nbering Aug 9 '18 at 6:01
  • What specifically are you trying to learn about brute force methods? – user52472 Aug 10 '18 at 15:08
  • @user52472 there're two key method i like to learn; generate, hash password & check them with hash list, both as fast as possible. I did write some small project but never check the hash result in one second when lots of program can do so – Huang Lee Aug 11 '18 at 6:04
2

I don't know any particular brute force in C#, but having worked in both C and C# (and inferring that you know C# from your question) I think with a good reference you should be able to jump into C. You will of course need to be very careful with garbage collection (malloc, etc.) and it will require learning procedural vs. object oriented coding but it's doable.

Here's a good thread: https://stackoverflow.com/questions/4002442/learning-c-from-a-background-in-c-sharp

One of the recommendations is The C Programming Language which is a classic. For something much lighter and very funny I'm a fan of Dan Gookin's C for Dummies which is light but still informative.

Good luck!

  • You are asking him to learn C language. OP asked for recommending a brute force program. Normally this forum is not suitable/allow for recommendation and your answer is very generic. You should have mentioned fuzzy testing/buffer overflow, etc. – Krishna Pandey Aug 22 '18 at 7:35
  • That's true, but in the follow up comments, and perhaps I should put information in there, OP talked about writing a program in C which is why my answer contained the information it did. Thank you very much though for the feedback and I'll keep trying to improve my answers! Cheers! – jfran3 Aug 22 '18 at 8:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.