This forum is in archive mode. You will not be able to post new content.

Author Topic: [C] Anyone have a good starter tutorial?  (Read 2815 times)

0 Members and 3 Guests are viewing this topic.

Offline Ragehottie

  • Knight
  • **
  • Posts: 313
  • Cookies: -9
  • Hack to learn, not learn to hack.
    • View Profile
[C] Anyone have a good starter tutorial?
« on: June 22, 2012, 06:16:18 PM »
After writing a botnet client in python(with some...errr alot of help) I want to make it in something that can be compiled. I have been wanting to learn C or C++ for a while, but I have never been able to understand it very well. I was going to learn C++, but I heard someone here say that C was better for hacking. So, anyone have any tutorials on C?
Blog: rexmckinnon.tumblr.com

Offline NeX

  • Peasant
  • *
  • Posts: 74
  • Cookies: 5
    • View Profile
Re: [C] Anyone have a good starter tutorial?
« Reply #1 on: June 22, 2012, 10:39:22 PM »
Code: [Select]
C For Dummiesand
Code: [Select]
C Primer Plusare the best ones for beginners.. but that's just my point of view :P

Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
Re: [C] Anyone have a good starter tutorial?
« Reply #2 on: June 22, 2012, 10:50:05 PM »
If you just want to compile the botnet,use py2exe...
Because it will take you long to get the knowledge to write a botnet in C again...
It's much more complex than in Python...
Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline NeX

  • Peasant
  • *
  • Posts: 74
  • Cookies: 5
    • View Profile
Re: [C] Anyone have a good starter tutorial?
« Reply #3 on: June 22, 2012, 11:15:11 PM »
If you just want to compile the botnet,use py2exe...
Because it will take you long to get the knowledge to write a botnet in C again...
It's much more complex than in Python...



Actually, not really :P
Here's an (old) example:
Code: [Select]
http://packetstormsecurity.org/files/25575/kaiten.c.html

Offline Lionofgod

  • Knight
  • **
  • Posts: 164
  • Cookies: 6
    • View Profile
Re: [C] Anyone have a good starter tutorial?
« Reply #4 on: June 23, 2012, 12:20:20 AM »
In terms of learning C, I'd say to use something like
-> K & R <-- C bible (Although kind of outdated, 2nd edition is Ansi C)
-> C Programming: A modern Approach (the "heir" to K & R as said by some)

If you want to make it fun, you can learn C along with
-> Hacking The Art Of Exploitation (It teaches C as well as how to debug/dissassemble which is pretty cool)
-> Advanced Programming in the Unix Environment (Teaches more about the Unix system along with C)

All these books can be torrented and found online, have fun : )

Offline Phage

  • VIP
  • Overlord
  • *
  • Posts: 1280
  • Cookies: 120
    • View Profile
Re: [C] Anyone have a good starter tutorial?
« Reply #5 on: June 23, 2012, 02:23:23 AM »
The e-books above are great. But if you want some video tutorials i will definitely recommend this website: http://thenewboston.org/list.php?cat=14

They have great tutorials in almost every major programming language (Java, c/++, c#, c etc)

Hope you will find this useful

Regards
Narraz

« Last Edit: June 23, 2012, 02:24:06 AM by Narraz »
"Ruby devs do, in fact, get all the girls. No girl wants a python, but EVERY girl wants rubies" - connection

"It always takes longer than you expect, even when you take into account Hofstadter’s Law."

Offline Ragehottie

  • Knight
  • **
  • Posts: 313
  • Cookies: -9
  • Hack to learn, not learn to hack.
    • View Profile
Re: [C] Anyone have a good starter tutorial?
« Reply #6 on: June 23, 2012, 03:05:02 AM »
Thanks for the suggestions guys.
If you just want to compile the botnet,use py2exe...
Because it will take you long to get the knowledge to write a botnet in C again...
It's much more complex than in Python...

I know I could use py2exe, but I really want to use C for other things too. It would be a better investment of my time to learn C. Hell, I'm only 15, I have all my life basically.
Blog: rexmckinnon.tumblr.com

Offline s3my0n

  • Knight
  • **
  • Posts: 276
  • Cookies: 58
    • View Profile
    • ::1
Re: [C] Anyone have a good starter tutorial?
« Reply #7 on: June 23, 2012, 07:49:23 AM »
The best starting book imho would be C Primer Plus.
Easter egg in all *nix systems: E(){ E|E& };E

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: [C] Anyone have a good starter tutorial?
« Reply #8 on: June 23, 2012, 08:08:50 AM »
The best starting book imho would be C Primer Plus.
Only for C++ though am I right?
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline s3my0n

  • Knight
  • **
  • Posts: 276
  • Cookies: 58
    • View Profile
    • ::1
Re: [C] Anyone have a good starter tutorial?
« Reply #9 on: June 23, 2012, 08:42:13 AM »
Only for C++ though am I right?

No, the author published two books. One "C Primer Plus" and one "C++ Primer Plus".
It's hard to find the first one on the net (for free) because many results come out with "C++ Primer Plus". If you want I can upload "C Primer Plus".

The latest edition I think is the 5th edition.
Easter egg in all *nix systems: E(){ E|E& };E

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: [C] Anyone have a good starter tutorial?
« Reply #10 on: June 23, 2012, 09:59:31 AM »
Well I just found it but for some reason zip is being stupid and saying: zip warning: name not matched.....

Which it's only supposed to do if the file is over 2gb. Which it's fucking not. I tried..


EDIT: Rar worked better. I will also put this in the ebook section.
« Last Edit: June 23, 2012, 10:03:56 AM by LuciD »
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline Ragehottie

  • Knight
  • **
  • Posts: 313
  • Cookies: -9
  • Hack to learn, not learn to hack.
    • View Profile
Re: [C] Anyone have a good starter tutorial?
« Reply #11 on: June 23, 2012, 05:48:04 PM »
Well I just found it but for some reason zip is being stupid and saying: zip warning: name not matched.....

Which it's only supposed to do if the file is over 2gb. Which it's fucking not. I tried..


EDIT: Rar worked better. I will also put this in the ebook section.


Thanks you, I will be using that one. Mostly because you provided a link :D
Blog: rexmckinnon.tumblr.com

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.