Author Topic: Learning C or Python  (Read 2595 times)

0 Members and 2 Guests are viewing this topic.

Offline Karpz

  • Peasant
  • *
  • Posts: 50
  • Cookies: -30
  • KARPz
    • View Profile
    • hi
Learning C or Python
« on: March 21, 2015, 08:51:43 pm »
I know most will say learn Python because you don't need to worry about memory management. But I'm new to coding, and I want yo focus on malware, specifically worms. Which should I learn first?


Or you know any other language to learn for worms would be good.


Damn fucking auto correct!
« Last Edit: March 21, 2015, 09:12:34 pm by Karpz »
"You don't?"
- Sterling Archer

Offline KryDos

  • Serf
  • *
  • Posts: 42
  • Cookies: 8
  • Software Engineer, Emacs uesr
    • View Profile
Re: Learning C or Python
« Reply #1 on: March 21, 2015, 09:02:33 pm »
I can suggest you one language but someone can suggest another language... how do you planing to choose?

If you want to understand how programs are working you need to learn C. If you want to make program quickly and this program isn't intended to work with low level stuffs you can choose Python.

P.S.
as I said, if you want to know how programs works you can choose C, but it's much better if you'll dive into Assembler.



Offline TheWormKill

  • EZ's Scripting Whore
  • Global Moderator
  • Knight
  • *
  • Posts: 257
  • Cookies: 66
  • The Grim Reaper of Worms
    • View Profile
Re: Learning C or Python
« Reply #2 on: March 21, 2015, 09:15:20 pm »
I can suggest you one language but someone can suggest another language... how do you planing to choose?
I second that.

If you want to understand how programs are working you need to learn C. If you want to make program quickly and this program isn't intended to work with low level stuffs you can choose Python.
I disagree here. One can understand how programs work without knowing C, or do you mean "how programs are executed by the CPU"? And python has low-level-integration via ctypes etc.

P.S.
as I said, if you want to know how programs works you can choose C, but it's much better if you'll dive into Assembler.
I'm not sure whether it's a good idea to go with Assembler first, but....

@OP: You don't look like you're a programmer, so I guess your best bet would be to learn coding first, and then focus on malware. Otherwise, you won't get any results.

My personal preference says python, but there are many other valid choices, since the focus would be to learn programming, go on to low-level programming and finally malware. I might even go so far and say that, in your situation, the language doesn't matter much.
« Last Edit: March 21, 2015, 09:23:40 pm by TheWormKill »
Stuff I did: How to think like a superuser, Iridium

He should make that "Haskell"
Quote
<m0rph-is-gay> fuck you thewormkill you python coding mother fucker

Offline Karpz

  • Peasant
  • *
  • Posts: 50
  • Cookies: -30
  • KARPz
    • View Profile
    • hi
Re: Learning C or Python
« Reply #3 on: March 21, 2015, 09:20:26 pm »
I second that.
I disagree here. One can understand how programs work without knowing C, or do you mean "how programs are executed by the CPU"? And python has low-level-integration via ctypes etc.
I'm not sure whether it's a good idea to go with Assembler first, but....

@OP: You don't look like you're a programmer, so I guess your best bet would be to learn coding first, and then focus on malware. Otherwise, you won't get any results.


I'm not. So yeah, but what language to begin with?
"You don't?"
- Sterling Archer

Offline KryDos

  • Serf
  • *
  • Posts: 42
  • Cookies: 8
  • Software Engineer, Emacs uesr
    • View Profile
Re: Learning C or Python
« Reply #4 on: March 21, 2015, 09:25:20 pm »

I'm not. So yeah, but what language to begin with?

Choose randomly. There is no good or bad languages (except brainfuck, Moo or similar).



Quote
@OP: You don't look like you're a programmer, so I guess your best bet would be to learn coding first, and then focus on malware. Otherwise, you won't get any results.
Truth!

Quote
or do you mean "how programs are executed by the CPU"
Exactly. Sorry, my English level don't allow me to express my thoughts correctly :(


Quote
And python has low-level-integration via ctypes etc.
.
It's needed mostly for Bindings and if you're going to use ctypes, it's better if you already know C.


Quote
I'm not sure whether it's a good idea to go with Assembler first, but....
Assembler as first language it's bad idea... yeah.


stop double posting
« Last Edit: March 21, 2015, 11:27:32 pm by HTH »

Offline Karpz

  • Peasant
  • *
  • Posts: 50
  • Cookies: -30
  • KARPz
    • View Profile
    • hi
Re: Learning C or Python
« Reply #5 on: March 21, 2015, 09:27:37 pm »
Choose randomly. There is no good or bad languages (except brainfuck, Moo or similar).


But I'm not going to start with c++. I'll start learning C, and go from there.


I hear most people become fluent in a language from 6 months and up, if someone can verify that  ;D
"You don't?"
- Sterling Archer

Offline TheWormKill

  • EZ's Scripting Whore
  • Global Moderator
  • Knight
  • *
  • Posts: 257
  • Cookies: 66
  • The Grim Reaper of Worms
    • View Profile
Re: Learning C or Python
« Reply #6 on: March 21, 2015, 09:32:55 pm »
It's needed mostly for Bindings and if you're going to use ctypes, it's better if you already know C.
Well, there is a lot of software like pydbg that uses ctypes to, say, control other processes etc. That's a very powerful feature,
since this combines low-level functionality and python's flexibility. And of course it's better to know C, I just wanted to point out that python is capable to be used with low-level stuff.
Stuff I did: How to think like a superuser, Iridium

He should make that "Haskell"
Quote
<m0rph-is-gay> fuck you thewormkill you python coding mother fucker

Offline HTH

  • Official EZ Slut
  • Administrator
  • Knight
  • *
  • Posts: 395
  • Cookies: 158
  • EZ Titan
    • View Profile
Re: Learning C or Python
« Reply #7 on: March 22, 2015, 04:21:51 am »
It really depends on you.

I'd say learn C because once you learn it Python (if not always in the most -pythonic- way) is a fucking walk in the park. The reverse is not always true. It's kinda like learning to drive in a snowstorm so that nicer days are a breeze :p

Just depends if you wanna tackle the harder part first or second. And please don't try to learn Assembler as a first language.
<ande> HTH is love, HTH is life
<TurboBorland> hth is the only person on this server I can say would successfully spitefuck peoples women

Offline th31nitiate

  • Peasant
  • *
  • Posts: 56
  • Cookies: -4
    • View Profile
Re: Learning C or Python
« Reply #8 on: March 23, 2015, 01:47:33 am »
Read hacking the art of exploitation and then after wards work through the python books first violent python and then go on to grey hat python and then black hat python




This can take you a few weeks but once done you should have a firm understanding

Offline Karpz

  • Peasant
  • *
  • Posts: 50
  • Cookies: -30
  • KARPz
    • View Profile
    • hi
Re: Learning C or Python
« Reply #9 on: March 23, 2015, 08:45:42 pm »
Read hacking the art of exploitation and then after wards work through the python books first violent python and then go on to grey hat python and then black hat python




This can take you a few weeks but once done you should have a firm understanding


I have read that book. And no... BH python?...
"You don't?"
- Sterling Archer

Offline v32itas

  • Peasant
  • *
  • Posts: 123
  • Cookies: -4
  • coup de grâce
    • View Profile
Re: Learning C or Python
« Reply #10 on: March 28, 2015, 05:36:15 pm »
I'm noob in programming and all computer stuff. I have a little bit of c++ experience. Coded a little bit in high school. Now i started learning coding. So from my personal noobish experience i can say that c++ is very boring for beginners. With python you can do all kinds of fun stuff faster and without much experience. I'm learning python now. Python is sexy. I mean as a beginner you can start writing programs that makes you wordlists. Searches for things in google. And code is very intuitive and human readable like:
#===========================================
from time import ctime;

print "Current time: " + ctime();

database = [
     ['Albert', '2587'],
     ['Jones', '1470']
]

username = raw_input('Username: ')
pin = raw_input('PIN code: ')

if [username, pin] in database: print 'Access Granted'
#=============================================
so I suggest python. Because it's sexy.
"There is nothing more deceptive then an obvious fact." - SH

“There was no such thing as a fair fight. All vulnerabilities must be exploited.”
― Cary Caffrey





Offline M4lwar3

  • /dev/null
  • *
  • Posts: 12
  • Cookies: -1
  • I can ping you to DEATH!
    • View Profile
Re: Learning C or Python
« Reply #11 on: April 17, 2015, 04:19:43 pm »
Amm, while Python is an easy and quick language, you can't get into low stuff(viruses usally do need low lv stuff) and it's pretty different than other programming languages. On the other sude, C is a very basic language and most of the modern computer languages are based on C.
If you'll choose learning C first you will learn a lot about memory management and it will be easy to learn other languages.

If you want a ease and quick programming language, choose python- GREAT language but you can't make big projects with it.
If you want to learn more about how the computer works choose C.

I know them both, and if you have time I recommend you to learn both, first C and then Python.

Good luck :)
7b24d30c7c6da318d2e5465c9673a140

Offline Hamster Sauce

  • NULL
  • Posts: 1
  • Cookies: 0
    • View Profile
Re: Learning C or Python
« Reply #12 on: April 18, 2015, 04:43:03 am »
I just about guarantee that if you learn C, it will get easier from there. It'll help you more quickly get a hang of the other C-based languages.

Python will be quicker to learn, and it's more object-oriented whereas C is more procedural, so if you're choosing between these two I'd say it depends on what paradigm is more interesting to you.

Offline sh4d0w_w4tch

  • Peasant
  • *
  • Posts: 73
  • Cookies: -1
  • Please do not feed the skids.
    • View Profile
    • 6c.nz
Re: Learning C or Python
« Reply #13 on: April 18, 2015, 06:26:03 am »
C will help you learn about datatypes.  Python is not dynamically typed.  The type is set when the variable is created but types are not automatically converted between types.  That might be enough to teach you that though.  Python will be useful because you'll start out being able to do cool stuff.  C will be more useful for learning memory management.  Python could teach basic memory management.
DeepCopy | Can you name a VPN provider that's like "hey use our services to hack government sites and spam the internet. Please Abuse our services"

+Polyphony | paging master hackers of evilzone: i am here to learn about your black hatted tools to hack different viruses like facebook, sql, php, and other ring zero exploits


Spacecow

  • Guest
Re: Learning C or Python
« Reply #14 on: April 18, 2015, 06:44:02 am »
Why can't you learn both? Come on, if a little mexican girl can figure that out then surely you can :p