Ruby For Hackers

L

Luka Lukako

Anybody know how to writing Keyloggers in ruby, or trojans or other
viruses?

P.S. please nybody have book for networking and sockets? (for coding in
ruby)
 
R

Robert Klemme

Anybody know how to writing Keyloggers in ruby, or trojans or other
viruses?

Even if I would, I would not tell you - for obvious reasons.
P.S. please nybody have book for networking and sockets? (for coding in
ruby)

It's described in the Pickaxe which is online.

Cheers

robert
 
M

M. Edward (Ed) Borasky

Luka said:
Anybody know how to writing Keyloggers in ruby, or trojans or other
viruses?

P.S. please nybody have book for networking and sockets? (for coding in
ruby)

Ruby is a terrible language for writing malware ... go learn Forth. ;)
 
T

Tim Hunter

Luka said:
Anybody know how to writing Keyloggers in ruby, or trojans or other
viruses?

Well, I don't know much about that field of programming, but if I had to
guess I'd say that Ruby seems ill-suited for these kinds of
applications. I mean, it makes it hard to run code surreptitiously when
the target computer has to have the Ruby interpreter, RubyGems, and
half-a-dozen gems installed. What are you going to say when the target
machine's actual owner asks you why he has to install all this stuff?
"Oh, no reason. Don't worry about it. Pretty please?"

Also Ruby is, ah, not exactly a speed demon, is it? I'd think that when
you want your virus to fire itself up and start sending spam you'd want
it to run quickly, otherwise the target machine's actual owner might
notice something's wrong.

All-in-all you're probably better off using some language more suited
for malware. Like Perl, or Python. Yeah, that's it. Perl. Or Python.
Either one.
 
L

Luka Lukako

Tim said:
Well, I don't know much about that field of programming, but if I had to
guess I'd say that Ruby seems ill-suited for these kinds of
applications. I mean, it makes it hard to run code surreptitiously when
the target computer has to have the Ruby interpreter, RubyGems, and
half-a-dozen gems installed. What are you going to say when the target
machine's actual owner asks you why he has to install all this stuff?
"Oh, no reason. Don't worry about it. Pretty please?"

Also Ruby is, ah, not exactly a speed demon, is it? I'd think that when
you want your virus to fire itself up and start sending spam you'd want
it to run quickly, otherwise the target machine's actual owner might
notice something's wrong.

All-in-all you're probably better off using some language more suited
for malware. Like Perl, or Python. Yeah, that's it. Perl. Or Python.
Either one.

Thanks you Tim! I think too, for hacking, is perl, python, C++ etc.. but
not ruby. :)

But, Why we need ruby? if only he can writing applications, who has
installed ruby? and for only rails?

- - -
WHY WE NEED RUBY?
- - -
 
L

Lionel Bouton

Luka said:
- - -
WHY WE NEED RUBY?
- - -

For flamewars. You can build high power lasers with one ruby. Then you
can use it to start fires from remote locations. So if you and your
opponent(s) have ruby in your arsenal you can start a flamewar.

Lionel
 
T

Tim Hunter

Luka said:
- - -
WHY WE NEED RUBY?
- - -

That is a deep metaphysical question that I am unworthy to answer. But
I'll take a stab at it anyway.

Perhaps Ruby fills the void that all programmers feel when searching for
the Answer to web-app, networking, and natural language processing
Questions. An all-encompassing, overarching, loving programming language
that is always there for us when it feels like the world - or at least
that part of the world populated by our bosses and customers - is
against us.

Indeed, we could say "If Ruby did not exist, man would be forced to
invent it."
 
L

Luka Lukako

Tim said:
That is a deep metaphysical question that I am unworthy to answer. But
I'll take a stab at it anyway.

Perhaps Ruby fills the void that all programmers feel when searching for
the Answer to web-app, networking, and natural language processing
Questions. An all-encompassing, overarching, loving programming language
that is always there for us when it feels like the world - or at least
that part of the world populated by our bosses and customers - is
against us.

Indeed, we could say "If Ruby did not exist, man would be forced to
invent it."

Mdaa... It's good answer but not fully :(

I have ledge one question:
I just begin learning ruby - so, 1 month, and i can writing, some simple
program in ruby, and I want to ask you, continue the learning ruby? or
no and learn other language, example: Python, Perl or Java?

Thanks and sorry for my bad English :)
 
M

Marc Heiler

or no and learn other language, example: Python, Perl or Java?

Only you can answer that question.

I think Perl though is inferior to both python and ruby mostly because
of one problem - readability. PHP has a similar problem but it is much
easier to understand than perl and at least tried to go to great lengths
to ensure that the basic functionality stays simple. Ruby is how perl
should have been many years
ago (with one exception maybe being "speedy text manipulation" years
ago... but if old C hackers want to continue using perl *shrug* the
world wont stand still anyway).

Java is inferior as well ;-) but the bigger question is, why you put
Java even inside that list? It does not make much sense for me,
"scripting languages" vs something huge like java. It feels like
comparing apples (ruby) to nitrogen-fertilizers on a farm crop (java),
which eventually leads to other, and possibly bigger, problems (flow
into sea or ocean).
 
P

Phillip Gawlowski

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Luka Lukako wrote:

| WHY WE NEED RUBY?

Because it's fun.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan

~ Hobbes : What if the public doesn't like your work?
~ Calvin : They are not supposed to like it. This is avant-garde stuff!
~ I'm criticizing the low brows who can't appreciate great art
~ like this!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgU1CkACgkQbtAgaoJTgL+iegCfROsYbJ1gITCyaiuPdtMpmwmH
wa8AoIbe3FAZOf/h8PUA773QU2u4Dpx+
=Auf9
-----END PGP SIGNATURE-----
 
J

Jeremy Hinegardner

Well, I don't know much about that field of programming, but if I had to
guess I'd say that Ruby seems ill-suited for these kinds of applications. I
mean, it makes it hard to run code surreptitiously when the target computer
has to have the Ruby interpreter, RubyGems, and half-a-dozen gems
installed. What are you going to say when the target machine's actual owner
asks you why he has to install all this stuff? "Oh, no reason. Don't worry
about it. Pretty please?"

Actually, one of the best tools for security research, penetration testing,
exploit research and the like is Metasploit. Which is completely written in
Ruby. Aaron Bedra did a talk at Rubyconf 2007 on this very subject, he is
involved in the metasploit project. He will also be giving a talk at RailsConf
2008 related to security and rails.

aaron's talk from 2007 : http://aaronbedra.com/assets/2007/11/11/rubyconf.pdf
All-in-all you're probably better off using some language more suited for
malware. Like Perl, or Python. Yeah, that's it. Perl. Or Python. Either
one.

I would say it is the complete opposite. In the security research area, Ruby is
a rising tool. I have several friends in the security realm who are learning
Ruby specifically to do work with metasploit.

enjoy,

-jeremy
 
T

Tim Hunter

Luka said:
I have ledge one question:
I just begin learning ruby - so, 1 month, and i can writing, some simple
program in ruby, and I want to ask you, continue the learning ruby? or
no and learn other language, example: Python, Perl or Java?

Okay, that's a serious question and deserves a serious answer.

Put down Ruby and study Python for 1 month. Then study Perl 1 month.
Then Java. In 3 months you'll have your answer, and in the process
you'll have learned something about 4 programming languages and you will
have become a better programmer.

Seriously, there is no one programming language for all programmers and
all programs. The Pragmatic Programmers used to recommend that we all
learn a new language every year. The more you have in your "programmer's
toolkit" the better programmer you'll be.
 
L

Luka Lukako

aaron's talk from 2007 :
Thanks! I just reading and like it. This book is a demo version?
if yes please upload full version if it's free.

Tim said:
Okay, that's a serious question and deserves a serious answer.

Put down Ruby and study Python for 1 month. Then study Perl 1 month.
Then Java. In 3 months you'll have your answer, and in the process
you'll have learned something about 4 programming languages and you will
have become a better programmer.

Seriously, there is no one programming language for all programmers and
all programs. The Pragmatic Programmers used to recommend that we all
learn a new language every year. The more you have in your "programmer's
toolkit" the better programmer you'll be.
Thanks, Man! I like your advise and I'll it...

Which learn first, python, perl or java? which is more easy?
1. python
2. perl
3. and java?
 
P

Phillip Gawlowski

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Luka Lukako wrote:

| Which learn first, python, perl or java? which is more easy?
| 1. python
| 2. perl
| 3. and java?

Yes.

They are all equally easy or hard to learn, nowadays, especially if you
already know your way around technical documentation, or know how to use
a search engine.

(I know that 'Dive into Python' is available for free as electronic
version, which is sort of similar to Programming Ruby).

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan

Zero defects: The result of shutting down a production line.
~ -- Kelvin Throop III, "The Management Dictionary"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgU/DYACgkQbtAgaoJTgL99rgCgnTUf5QhtIx45IXA7YeVNNT13
vkUAoJlgwKdlhvhEIA+WdLMq+DqBgX7J
=fRDA
-----END PGP SIGNATURE-----
 
A

Arlen Cuss

[Note: parts of this message were removed to make it a legal post.]

Hi,

I would say it is the complete opposite. In the security research area,
Ruby is
a rising tool. I have several friends in the security realm who are
learning
Ruby specifically to do work with metasploit.


*whoooosh*

(also, N.B. malware is not directly equal to `security research', but that's
not the point)

In good humour,
Arlen
 
E

Eleanor McHugh

I would say it is the complete opposite. In the security research
area, Ruby is
a rising tool. I have several friends in the security realm who are
learning
Ruby specifically to do work with metasploit.

People thought we were weird at the first RailsConf Europe for talking
about our Ruby packet-sniffing research, but increasingly security
hackers are getting dissatisfied with the hoops C++ and Java make you
leap through. Stuff that takes a week or two in Ruby can take months
with those languages, and the code is much harder to follow when
you've finished.

Ruby. It's where the smart kids play :)


Ellie

Eleanor McHugh
Games With Brains
http://slides.games-with-brains.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top