View previous topic :: View next topic |
Author |
Message |
alex6z Tux's lil' helper
Joined: 20 Jul 2005 Posts: 119
|
Posted: Tue Dec 25, 2007 5:02 am Post subject: [solved] Is linux secure? Find out with a shell server! |
|
|
ssh -p 1222 public@98.214.151.249
ssh -p 1222 public0@98.214.151.249
ftp is on port 30021.
To fix jammed accounts:
ssh -p 1222 ag@98.214.151.249
Most TCP ports are firewalled except FTP and HTTP. UDP, and TCP above port 32768 are open for outgoing data. UDP/TCP ports 30000-30099 are accessable from the outside.
See the /CRACK_ME file.
If you get root and follow the directions in /CRACK_ME, then I'll send you $5 or a .36oz 90% silver half dollar in the mail.
There was once this guy who had a box where there was a php exploit or something and the apache account was compromised. He wanted to reformat because of this. I thought this was silly because it's just the apache user, not the whole system.
So, was my opinion good? That's what this shell server is for IF you break in to the root account easily then reformating might have been the right thing to do then, do you think?
enjoy It's a 133MHz box that I got from the trash.
I added a NEW TOY!:
in "/home/public/EXPLOITABLE_FUNSTUFF/" there is an exploitable version of the exiftags-1.00 tool set which is setgid "cracked". If you want to have a little fun, you can try to gain access to the "cracked" user group. The GLSA concerning exiftags-1.00 is here: http://security.gentoo.org/glsa/glsa-200712-17.xml
Happy hacking.
Last edited by alex6z on Wed Feb 20, 2008 10:03 pm; edited 8 times in total |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Tue Dec 25, 2007 12:10 pm Post subject: |
|
|
Quote: | There was once this guy who had a box where there was a php exploit or something and the apache account was compromised. He wanted to reformat because of this. I thought this was silly because it's just the apache user, not the whole system. |
Once it's been compromised, you just don't know for sure. "Just the apache user" can gather a lot of data (all passwords / authentication required on the site that apache is hosting, for instance). Then there are (or may very well be) tons of local exploits. If some unauthorized person had access to your system, and your system is not set up to deal with non-trustworthy users (permissions not restrictive enough etc), you have a serious problem... |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54815 Location: 56N 3W
|
Posted: Tue Dec 25, 2007 2:38 pm Post subject: |
|
|
alex6z,
looks like your box is down already _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Simba7 l33t
Joined: 22 Jan 2007 Posts: 708 Location: Billings, MT, USA
|
Posted: Tue Dec 25, 2007 3:47 pm Post subject: Re: Is linux secure? Find out with a shell server! |
|
|
alex6z wrote: | enjoy It's a 133MHz box that I got from the trash. |
I've found an old Vectra VL 166MHz in the trash. I ended up puting 384MB of RAM, a pair of 40's, and installing Gentoo in/on it.
32MB of RAM is kinda pushing it, but you're not running anything else on it.
I love it when people throw these "useless" systems out and I snag 'em. They work great for firewalls, routers, and low/medium-traffic servers. |
|
Back to top |
|
|
alex6z Tux's lil' helper
Joined: 20 Jul 2005 Posts: 119
|
Posted: Tue Dec 25, 2007 4:24 pm Post subject: |
|
|
NeddySeagoon wrote: | alex6z,
looks like your box is down already |
It doesn't seem to be down. |
|
Back to top |
|
|
GNUtoo Veteran
Joined: 05 May 2005 Posts: 1919
|
Posted: Wed Dec 26, 2007 5:52 pm Post subject: |
|
|
you could make a little space on this box... |
|
Back to top |
|
|
alex6z Tux's lil' helper
Joined: 20 Jul 2005 Posts: 119
|
Posted: Wed Dec 26, 2007 8:18 pm Post subject: |
|
|
People like to fill the disk. Just look in /home/public or /tmp for large files and delete them. I think somebody filled .bash_history to 2GB for some reason. Just delete it. |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Wed Dec 26, 2007 8:19 pm Post subject: |
|
|
is that a forkbomb script i see? _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
alex6z Tux's lil' helper
Joined: 20 Jul 2005 Posts: 119
|
Posted: Wed Dec 26, 2007 8:38 pm Post subject: |
|
|
Yes I put fork.c there to save everyone the trouble of making their own and having it not really do much It also exits on its own after 5 minutes.. |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Wed Dec 26, 2007 8:39 pm Post subject: |
|
|
alex6z wrote: | It also exits on its own after 5 minutes.. |
aww, that's no fun...
is that scripted or done with limits.conf? _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
alex6z Tux's lil' helper
Joined: 20 Jul 2005 Posts: 119
|
Posted: Wed Dec 26, 2007 8:58 pm Post subject: |
|
|
You can copy fork.c and change it. It's limited with limits.conf so the fork bomb doesn't do much and fork.c exits after 5 minutes so that it doesn't stay running forever and you don't lock yourself out as easily. |
|
Back to top |
|
|
alex6z Tux's lil' helper
Joined: 20 Jul 2005 Posts: 119
|
Posted: Fri Dec 28, 2007 4:08 am Post subject: |
|
|
Has everyone lost interest already? Only a couple logins today |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6069 Location: Removed by Neddy
|
Posted: Sat Dec 29, 2007 11:39 pm Post subject: |
|
|
don't worry it will heat up again
just re-grouping _________________ #define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0; |
|
Back to top |
|
|
nendzd n00b
Joined: 10 Apr 2006 Posts: 68
|
Posted: Fri Jan 04, 2008 7:53 pm Post subject: |
|
|
I logged in and poked around. No ideal how to "hack" root or anything.. Someone deleted your fork thing by the way. |
|
Back to top |
|
|
Dagger Retired Dev
Joined: 11 Jun 2003 Posts: 765 Location: UK
|
Posted: Sat Jan 05, 2008 12:50 am Post subject: |
|
|
hehe i will gladly take a look on it over the weekend _________________ 95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license. |
|
Back to top |
|
|
alex6z Tux's lil' helper
Joined: 20 Jul 2005 Posts: 119
|
Posted: Thu Jan 17, 2008 12:31 am Post subject: |
|
|
If I had a faster computer, maybe I could make a public distcc server out of it? I have a 1.3GHz Duron that isn't being used, is it worth it? How about a Pentium III 1.00GHz? |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Thu Jan 17, 2008 2:03 am Post subject: |
|
|
Are you aware of the bandwidth requirements of distcc? In a local network it's fine, but public over the internet doesn't much sense... regarding both cpu cycles that a single machine can provide to "the public" and internet traffic... |
|
Back to top |
|
|
fog n00b
Joined: 28 Sep 2003 Posts: 49
|
Posted: Thu Jan 17, 2008 3:32 am Post subject: |
|
|
This is good fun! I'd just worry about people using it to attack remote hosts or such, but I guess the firewall would do it.
I'm no hacker, but I want to give this a try anyway...
Last edited by fog on Fri Jan 18, 2008 5:31 pm; edited 1 time in total |
|
Back to top |
|
|
alex6z Tux's lil' helper
Joined: 20 Jul 2005 Posts: 119
|
Posted: Fri Jan 18, 2008 1:42 am Post subject: |
|
|
frostschutz wrote: | Are you aware of the bandwidth requirements of distcc? In a local network it's fine, but public over the internet doesn't much sense... regarding both cpu cycles that a single machine can provide to "the public" and internet traffic... |
How much bandwidth does distcc take on a 1.3GHz Duron, exactly?
I added a NEW TOY!:
in "/home/public/exiftags-1.00-CRACK_ME/" there is an exploitable version of the exiftags tool set which is setgid "cracked". If you want to have a little fun, you can try to gain access to the "cracked" user group. The GLSA concerning exiftags-1.00 is here: http://security.gentoo.org/glsa/glsa-200712-17.xml
Happy hacking. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54815 Location: 56N 3W
|
Posted: Fri Jan 18, 2008 2:29 pm Post subject: |
|
|
alex6z,
The helper nodes get sent the preprocessor output to compile and return the binary to the control node for linking.
Lets take a kernel as a worked example.
The kernel is about 250Mb uncompressed but including its .o files, so to compile a kernel for me I'm going to send you some 200+Mb and download the balance. My uplink is 440kbits/sec, (55kB/sec) so it takes me 4545 seconds to upload the source for you to build (using 200Mb at 55kB/sec). Thats 1.25 hours.
However, I can build a kernel in less than 15 min without your help. So, to break even, I need an upload speed of 275kB/sec.
Then we have the build time on your box and the download of the binaries. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
alex6z Tux's lil' helper
Joined: 20 Jul 2005 Posts: 119
|
Posted: Fri Jan 18, 2008 3:57 pm Post subject: |
|
|
That 250MB is for when you enable ALL the kernel options, isn't it?
If you enable every kernel option, how long does it take to compile? |
|
Back to top |
|
|
fog n00b
Joined: 28 Sep 2003 Posts: 49
|
Posted: Fri Jan 18, 2008 5:31 pm Post subject: |
|
|
alex6z wrote: | That 250MB is for when you enable ALL the kernel options, isn't it? |
250MB (actual: 235.9 for 2.6.23.14) is the size of the uncompressed kernel source code. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54815 Location: 56N 3W
|
Posted: Fri Jan 18, 2008 5:43 pm Post subject: |
|
|
alex6z,
Very true - thats the entire kernel source tree.
However the preprocessor makes the sources bigger so its swings and roundabouts. I was trying to illustrate the amount of data to be moved and the time it would take. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
alex6z Tux's lil' helper
Joined: 20 Jul 2005 Posts: 119
|
Posted: Fri Jan 18, 2008 6:01 pm Post subject: |
|
|
Now the question is: Does distcc server cache the data that is sent to it to compile, specifically the header files.
I don't really know how distcc works, but I'm guessing that the file that needs to be compiled, and all the header files that go along with it, are send to the distcc server. Then the server sends back the object file. If the distcc server caches the header files then not that much data would need to be sent twice. Or could it be that the preprocessor runs on the client and the preprocessed data is send to the distcc server to get compiled?
So if you have a slow computer, and you're trying to compile a package that's say 30MB, and distcc caches the data that is send to it, it could be worth while, no? If you have a 50KB/sec upload, it should only take 10 minutes to upload the whole thing (30MB) to the distcc server, right?
AS far as I know using distcc doesn't ever slow down compiling, does it? The object files don't have to be compiled in order, do they? |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Sat Jan 19, 2008 12:07 am Post subject: |
|
|
distcc slows down compiling horribly when there is a slow distcc server. distcc sends a job to this server and expects an answer back ASAP because otherwise the compiling process simply cannot continue. This means you need both a fast network and a fast computer to do the compile. Compile results do depend on each other, you cannot simply tell a server oh you compile this half and I compile this half and we'll put it together later. |
|
Back to top |
|
|
|