- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
Those comments weren't, because cleaner looked for FIXME and overlooked this file.
Admin
Nobody seems to have picked up on one thing - why does a DSL router run stunnel???
http://stunnel.mirt.net/ "The stunnel program is designed to work as an SSL encryption wrapper between remote client and local (inetd-startable) or remote server. It can be used to add SSL functionality to commonly used inetd daemons like POP2, POP3, and IMAP servers without any changes in the programs' code"
That could even be a backdoor :(
Admin
Admin
My parents have an ActionTec... It's a major POS.
Admin
He wasn't talking about Police Chief Wiggam's son in wedlock, duh.
According to the script of an unreleased episode that's so secret not even its author is aware of it, Wiggum will pay dearly for interfering with one of Montgomery Burns' evil plots. As he is lying on the ground, breathing his last breaths, he turns to Muntz and says "Nelson, I am your father."
To which Muntz will reply "HA HA."
Sheesh, you really have to spell it out for some people.
Admin
It also means that you don't get the versions of these commands built into the shell - sometimes a good thing.
Admin
Admin
Admin
Admin
It also means that you can avoid the versions of the scripts that are built into the shell. This is usually a good thing for portability when you consider that the version of "sh" on the target platform is usually different from the one on your local machine.
Solaris sh is different from Linux sh is different from HP/UX sh is different from BSD sh.
Admin
And you thought it could only crash your desktop! Coming soon to a mobile phone near you... Windows, the abomination!
Admin
QFT.
Admin
The only thing I can think of that may require ssl would be an outward facing web interface. Many routers I've seen have the option to allow connections to their web-configuratoin interface from outside the local network, through an https session on a different port (8080 vs 80 seems to be common). /shrug
Admin
Lol, what is a "FOXME"?
Admin
/etc/rc and /etc/rc.local
Hey, that was easy. Thanks, plain old-fashioned BSD!
I've run linux as a server for a very long time, and think it's fine, but this "be everything to everyone and also blend mixed drinks" thing has really gone too far.
Admin
I guess BBCode is too incredibly f*!@$^ retarded to figure out that "Quote" should match "quote".
Why are we not using HTML, exactly?
Admin
Is this and a sarcastic comment all that constitutes a wtf nowadays? Give me any sizeable Linux distro and I'll keep the site going for a year.
Admin
Admin
Unless you have it aliased, say to rm -i. In this case, /bin/rm overrides the use of the alias since it's a full path name to an executable.
Admin
Ironically you misspelled grammar.
Admin
Anyone mind spelling out the WTF for those who don't know Linux and not much about networking?
Admin
When I worked for a rural ISP in the days of dial-up we only sold modems with very basic functionality ($100). 90% of connection problems people had were related to brand name modems (usually around $500). For example having run through my full list of diagnostic tests over the phone I got the user to bring their computer into the office but I could not reproduce the problem. So it was time for a site visit, when I dialed in sure enough the problem was exactly as the user described, it would take about 90 seconds to connect, then you would get about 30 seconds use before it would "hang" for 30 seconds, then 30 seconds use... I plugged in one of our modems and did not have the same problem. The user manual offered no suggestions, but did give a list of AT commands (non standard of course) so after telnetting into the modem I convinced it to show me what exactly it was doing. It would start to negotiate a connection speed at 56k, then drop to the next speed and so on until it got a successful connection, if this was not 56k then it would start again at the top and work down again, this explained the first 60 seconds, then it really got "clever", every minute after the beginning of the first connection attempt it would try and negotiate a faster connection again starting at the top and working down, so this explained the rest of the first 90 seconds and why you could only get 30 seconds use per minute. After changing the modems settings so that it would only attempt to connect at the maximum speed the line would support it was time to update the standard list of diagnostic questions, the first question was now, what brand of modem do you have? I could not reproduce the problem in the office as we had a near perfect line to the exchange.
Admin
No, that's just public sector IT.
Admin
Actually I think the lines
default value was 8192
echo 2048 > /proc/sys/net/ipv4/route/max_size
might be a problem, causing excessive fragmentation.
Admin
Even though the comment isn't particularly funny, I totally agree with that, here is an innocent persons name and reputation dragged down in the dirt ...
The alternative would be to anonymize the top comments, but I think that would be too late now.
Admin
Sorry, I have to nitpick a little here...
Chief WiggUm's son is called Ralph (a very simple minded child): [image]
The guy with the notorious "haw-haw!" laughter OTOH is much less simple and much more mischievous and is called Nelson Muntz (son of Mrs. and Mr. Muntz -d'oh!) [image]
Admin
When I consider the poor quality of the scripts and seemingly random plots in the latest seasons of the Simpsons, I almost believe you.
Admin
It's actually good to use "/bin/rm" in scripts to call rm rather than just "rm". Often times the current working directory will be included in the search path, so your script can be transformed into a root execution vector if you're not careful about qualifying the paths on your tools.
Admin
Like a FIXME, but impossibly hard to fix, thus the programmer is "foxed".
You know like
FOXME: make this sort run in O(1) time.
Admin
That's the /etc/init.d/rcS script from an ActionTec M1000.
My DSL router appears to perform just fine, however.
Admin
Isn't TRWTF that the user didn't update the firmware?
Admin
Care to explain how altering the route cache size causes excessive fragmentation?
Admin
LOL clearly a debian user ;)
/flamemelinuxfanboys
Admin
FOXME: CLEAN UP COMMENTS BEFORE POSTING
Admin
Wear the FoxHat....
Admin
Most routers have a management interface. It's probably a way of enabling the local webserver to accept HTTPS connections, probably the embedded webserver used doesn't have a mod_ssl available.
Admin
It means the programmer wants the reader to transform her into a beautiful woman, a "Fox".
Presumably the programmer that wrote this comment doesn't think that she's very attractive, and wants something done about it.
Admin
That's a security feature. ;-) It really is.
It prevents others from changing the path and linking to another executable.
Mostly it is linked to "rm" though. ;-) Example:
Path = "/bin" Command in script is "ls important_file.txt" So, it will execute "/bin/ls important_file.txt"
If an attacker does "ln -s /bin/rm /tmp/ls" And can change the path in the script to "/tmp" Then the script will actually execute "/bin/rm important_file.txt"
Offcourse you need to be able the change the path...
Admin
#THIS COMMENT IS A PIECE OF CRAP
Admin
To remove a fox from a body. Possibly a furry thing.
Admin
Steven!
Admin
seconded
Admin
Admin
Thirded. Saw that email addy and thought "wow, TDWTF didn't even bother to censor it". Then someone said it wasn't Mike's code, then Mike says it isn't his code.
Can we get that clarification blue'd so people know?
Admin
Alright, this is getting a bit shameful...
First, WTF does "fully set" mean? How could that variable be "half-set"?Either the PATH is one value, or it's another. What you're probably thinking of is a case where some of the user's rc scripts (~/.bashrc, ~/.profile, etc) haven't been run.
I'm guessing that ssh (seriously, who uses rsh anymore? Fail.) will execute at least one of those rc files, so you could always set the path correctly. The added benefit is that if you get the path set, you no longer have to care where the file is on that machine.
Now, what no one mentioned is that it might be an issue with security -- for example, a setuid script probably doesn't want to trust ANYTHING from its environment. But hopefully, the initial boot script isn't setuid.
Even if it was, the recommended precaution is to override PATH. Since this script set PATH clearly, there's really no reason to assume it might not be set. Even if you ran it over ssh, rsh, sudo, whatever, it's still going to set and preserve its own path.
That would be a fair argument -- if it were run in the same shell as that alias. That seems unlikely. On my own Ubuntu system, there's a ~/.bashrc, run by Bash for non-login shells, and ~/.profile, run by Bash (and other sh-like shells) for login shells. By default, the first line of .bashrc causes the entire file to be skipped unless it's an interactive shell -- you would put aliases after that line.In other words, unless someone ran 'source' on that script, it's not running in an interactive shell. And unlike environment variables, aliases don't carry over to child shells. That's easy enough to test -- setup an alias, then run 'bash' to spawn a subshell and see if your alias is still there.
Since I don't see any alias commands in the script, and since PATH is explicitly set, it's actually pretty safe to assume that rm is where it's supposed to be.
It's not a huge WTF, as /bin is really where it belongs, but you never know. Where it would be a (slightly) bigger aggravation would be things like the classic #!/usr/bin/perl -- the Ruby people seem to have taken to "#!/usr/bin/env ruby", which I think is a lot cleaner. I'm probably not going to replace 'env', but it is nice to compile different versions of Ruby, put them under different paths, and choose which to use by tweaking environment variables.
Admin
Obviously, it mean FOXME.
Admin
Exactly, obviously a case of the right hand not knowing what the left hand is doing. A true indicator of a WTF company. A good dev shop would have some kind of standard established so that everybody did it the same way.
Admin
ker-stamp /EXCUSE DENIED/
Admin
I use /bin/rm because on some of the systems I use, rm is aliased to rm -i.