Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-06-2006, 06:24 AM
|
#1
|
Registered User
Registered: Mar 2006
Posts: 9
Rep:
|
Security threat with the echo command
Is the following command show the password of the current user?
echo '82 43/25 43+65p80p82p73p76p32p70p79p79p76p10p' | dc
|
|
|
04-06-2006, 06:57 AM
|
#2
|
Member
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900
Rep:
|
Doesn't seem to, no - at least not in Ubuntu.
|
|
|
04-06-2006, 07:03 AM
|
#3
|
Senior Member
Registered: Oct 2003
Posts: 3,018
|
dc is an old unix command line calculator; haven't seen that installed on any linux distro. The echo string is in the type of format that dc would accept as input. Since that is what is being piped into dc, it is, if anything, a security issue with dc, not echo. I can't test it since I don't have dc installed on any linux system but I seriously doubt it will give you the current user's password.
|
|
|
04-06-2006, 07:08 AM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,417
|
April Fools Day joke. The original post says if you run this as root it would give root password.
* Sure you run unknown stuff inside Qemu, right? With -loadvm the system's up from zero to cli in 3 secs...
Last edited by unSpawn; 04-06-2006 at 07:12 AM.
Reason: //Promote safe(r) testing
|
|
|
04-06-2006, 08:26 AM
|
#5
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
Code:
debian:~/bin# echo '82 43/25 43+65p80p82p73p76p32p70p79p79p76p10p' | dc
65
80
82
73
76
32
70
79
79
76
10
debian:~/bin#
(still alive)

|
|
|
04-06-2006, 08:38 AM
|
#6
|
Moderator
Registered: May 2001
Posts: 29,417
|
Yr sposed to do this as root account user. The OP just didnt post the full joke.
|
|
|
04-06-2006, 08:45 AM
|
#7
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
Yes it was as root,
but since then it has rebooted by itself,
pretty effective 
|
|
|
04-06-2006, 11:50 AM
|
#8
|
Member
Registered: May 2004
Location: Atlanta, GA USA
Distribution: Redhat ES4, FC4, FC5, slax, ubuntu, knoppix
Posts: 155
Rep:
|
Interesting. Scary, but interesting.
|
|
|
05-04-2006, 06:14 AM
|
#9
|
LQ Newbie
Registered: May 2006
Posts: 1
Rep:
|
This produces an output - APRIL FOOL! Somebody please tell me how.
|
|
|
All times are GMT -5. The time now is 04:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|