Hard Light Productions Forums

Off-Topic Discussion => General Discussion => Topic started by: Stunaep on October 05, 2003, 01:48:24 pm

Title: A request for you coders!
Post by: Stunaep on October 05, 2003, 01:48:24 pm
Could some of you SCP dudes/dudes with l33t programming sk1llz recommend/code me a small proggy that would check for an internet connection, say every five minutes, and then log the outages into a convienient log file.

Example.

Log.txt.

Outage start: 19:30
Outage end: 20:35

Outage start: 21:15
Outage end: 21:20

Please?
Title: A request for you coders!
Post by: Ashrak on October 05, 2003, 02:09:19 pm
...... why? because of todays ADSL server crash?
Title: A request for you coders!
Post by: Stunaep on October 05, 2003, 02:22:44 pm
because of the random outages of the Starman internet service several times a day. I want to log every outage they make, and stuff it under their noses by the end of the month, and demand my money back
Title: A request for you coders!
Post by: Ashrak on October 05, 2003, 02:33:09 pm
they wont give it to you...
Title: A request for you coders!
Post by: Stunaep on October 05, 2003, 02:44:31 pm
actually, based on some of the newspapers from a while ago, they should.

And if they don't, I have some material to give to the newspapers for scandal material
Title: A request for you coders!
Post by: kasperl on October 05, 2003, 02:45:57 pm
erm, Stunaep, how is the machine this is going to be used on connected to the web?
Title: A request for you coders!
Post by: Stunaep on October 05, 2003, 03:06:34 pm
through cable.
Title: A request for you coders!
Post by: kasperl on October 05, 2003, 03:10:34 pm
directly?
no router and stuff?
Title: A request for you coders!
Post by: Tian Guan on October 05, 2003, 03:27:36 pm
I swear to God, you tell him he needs a firewall and I'll kill you.
Title: A request for you coders!
Post by: vyper on October 05, 2003, 03:32:12 pm
[q]I swear to God, you tell him he needs a firewall and I'll kill you."[/q]

:wtf: U Disagree?
Title: A request for you coders!
Post by: Tian Guan on October 05, 2003, 03:38:01 pm
Nobody needs a firewall.

Firewalls are like Security for Dummies. Sure, it's a good idea to have one anyway, but to say a firewall is an essential part of using the internet is sufficiently dumb as to incur my awesome and terrifying wrath.
Title: A request for you coders!
Post by: vyper on October 05, 2003, 03:45:02 pm
[q]but to say a firewall is an essential part of using the internet is sufficiently dumb as to incur my awesome and terrifying wrath.[/q]

May I say, thats an incredibly arrogant and rather foolhardy statement. A virus such as MBlaster can be stopped if a firewall is hiding any appropriate ports. Say a virus that calls home infects your system, any good firewall will report the attempt and allow you to block access. All of this leads to increased security. Beyond all this is does a basic job at stopping hackers penetrating your system.

All in all, any average net user should have some form of firewall installed even if its the basics like Zone Alarm freeware.
Title: A request for you coders!
Post by: Tian Guan on October 05, 2003, 03:51:50 pm
.......If your machine is patched, as any good user will have made sure, Blaster does ****-all.
Title: A request for you coders!
Post by: Flaser on October 05, 2003, 03:52:41 pm
Amen to that.

It saved my hide twice ever since MSBlast.

It's nothing serious...but it was never ment to be.
Title: A request for you coders!
Post by: Tian Guan on October 05, 2003, 03:57:53 pm
Guys, if your machine is flawed, a firewall ain't gonna help. Frankly, if you don't patch and update your software, you deserve to be hacked. Hell, you shouldn't even have a computer if you don't know how to look after it.

A firewall is just the lazy mans way of defending himself. It's like going out in the lighting with an umbrella. Sure, it'll keep the rain off, but the second a lightning bolt notices your holding a huge metal rod, BLAMO!!! You're fried.
Title: A request for you coders!
Post by: vyper on October 05, 2003, 04:00:53 pm
Thats an incredibly odd comparison, frankly, and I'd rather have even a small firewall than nothing.

I used blaster as an example but the principle could apply to other "non-patch" viruses, where its not a software specific fault.
Title: A request for you coders!
Post by: Tian Guan on October 05, 2003, 04:05:16 pm
You have basically 2 types of 'virus'. Ones that exploit code and ones that exploit human stupidity.

Patches fix the first kind and a BSOD fixes the latter.

If you patch your software and get infected with a virus, it's your own damn fault and deserve to suffer.

Besides, it's no good just having a firewall blocking ports if there's still a virus on your machine deleting all your files.

Patches + Virus Scanner > *Firewall.
Title: A request for you coders!
Post by: Stunaep on October 05, 2003, 04:07:45 pm
no firewall.

now, back to the topic, please
Title: A request for you coders!
Post by: vyper on October 05, 2003, 04:08:01 pm
[q]If you patch your software and get infected with a virus, it's your own damn fault and deserve to suffer.[/q]

Again, a very arrogant statement and not very accurate. You can have all the up-dates in the world installed, it still won't stop someone exploiting your ports being more open and accessible than a room full of hookers. :wtf:
Title: A request for you coders!
Post by: vyper on October 05, 2003, 04:09:09 pm
Ach, alright stu, this just gets on my nerves. :)
Title: A request for you coders!
Post by: Tian Guan on October 05, 2003, 04:20:26 pm
Quote
Originally posted by vyper
[q]If you patch your software and get infected with a virus, it's your own damn fault and deserve to suffer.[/q]

Again, a very arrogant statement and not very accurate. You can have all the up-dates in the world installed, it still won't stop someone exploiting your ports being more open and accessible than a room full of hookers. :wtf:

Your. Ports. Don't. Need. To. Be. 'Guarded'. If. You're. Only. Running. Secure. Software.

It's when dickheads leave things like file-sharing active or when they run software that can be contacted and its holes exploited that people get raped.
Title: A request for you coders!
Post by: Liberator on October 05, 2003, 04:31:39 pm
I got just three words for ya:

Black Hat Hacker[/b]

Here's five more:

Distributed Denial of Service Attack[/b]

A basic firewall such a ZoneAlarm that provides a "stealthed" presence for any machine upon which it is installed will prevent, at least most of the time, individual machines from being used by the former for the latter.  Not having some kind of firewall is just stupid.  It's like standing in Downtown New York screaming,"SOMEBODY COME RAPE ME!!!".

Yeah there are a lot of things the "Advanced User" can do so as not to have to use a FW.  But, experts will advise the use of a FW for ANY Broadband connection and permanent dial-up.
Title: A request for you coders!
Post by: karajorma on October 05, 2003, 05:29:20 pm
Bah. If you're so secure without your firewall Tian Guan why don't you put your money where your mouth is. Announce that you are declaring a cracking contest for your computer and that anyone who does hack in won't face any legal concequences.
 Now go to a cracker hangout and announce the same challenge.

I figure that would give the rest of us a couple of days peace while you reinstall your operating system and generally put right the stuff it would take those guys 5 minutes to do to your unprotected computer.
Title: A request for you coders!
Post by: demon442 on October 05, 2003, 10:25:06 pm
Hell yeah.  Kara has hit the annoying nail on its annoying head.

Hey Tian, im glad that you take the time to go through every single program you own, making sure that it is perfectly uncrackable in your own perfect little world; but the rest of us know that nobody is safe anywhere and some protection is a hell of a lot better than arrogant bluffing.  Also, said blufing will not save you from the brand new virus that there is no patch for.  So next time you find yourself in a hacker/cracker ****-storm, let me know which way the wind is blowing.

And as for stunaeP, why would you not want a firewall?  If money is an issue, there are plenty of free alternatives.  I'm guessing, for the time being, that you will not be running this scan on your main PC, and you'll be using an old junker box to run it.

There's a linux distro called Smoothwall that you can set up on this junker and act as an awesome router/firewall.  With a Smoothwall box between you and 'Tian's perfect internet',  you can run the scan on your PC, without all the hassle.  Add in a software firewall behind the 'SmoothBox' for peice of mind, and you're all set.
Title: A request for you coders!
Post by: Stealth on October 05, 2003, 10:32:49 pm
Quote
Originally posted by Tian Guan
Nobody needs a firewall.

Firewalls are like Security for Dummies. Sure, it's a good idea to have one anyway, but to say a firewall is an essential part of using the internet is sufficiently dumb as to incur my awesome and terrifying wrath.


If firewalls are like Security for Dummies, then not having one means you are a "dummy".

Really, you can't be speaking out of experience...

there's a reason why every corporation and business in the world has some sort of firewall hooked up to it, and it's not because they're all "dummies". :rolleyes:  it's because they don't like taking chances.  sure you could get around without a firewall, probably, but why take the chance in the first place ;) :D
Title: A request for you coders!
Post by: Kamikaze on October 06, 2003, 01:29:35 am
Personal firewalls just make people complacent, I bet a cracker can still get into most of your firewalled boxes.
Title: A request for you coders!
Post by: Gloriano on October 06, 2003, 02:34:16 am
fire-walls are good if i but my firewall down there would be chaos in my computer (once i but it down and there were about 6 attacks thanks god that they dind't make too much harm)
Title: A request for you coders!
Post by: kasperl on October 06, 2003, 05:29:12 am
Quote
Originally posted by Stunaep
no firewall.

now, back to the topic, please


ok, do you think you can run DOS programs?

if so, i might be able to wip something up in basic.

edit: i'll probably need the IP of your DNS.

edit2:

ok, i got it to work, but i'll need your DNS ip before i can compile. it's quick&ugly, and it's DOS.
it uses the ping program, and outputs a single ping to a file,every five minutes. i might be able to build a parser for it, but only upon specific request, since parsers are hell.
Title: A request for you coders!
Post by: kasperl on October 06, 2003, 06:49:53 am
ok, i got it to work pretty well, i think. i'll need some help testing it. i'll paste the source below, and everybody who wnats to help test it can post here or send a pm with an ip to ping. i'll compile a version for him/her then.

Code: [Select]


CLS
PRINT " to end this program, press ctrl+break, all pings will be saved."
ping:
SHELL "ping 192.168.0.2 -n 1 > TIME.txt"

dump:
OPEN "time.txt" FOR INPUT AS #1
OPEN "log.txt" FOR APPEND AS #2
DO
INPUT #1, temp$
PRINT #2, temp$
LOOP UNTIL EOF(1)
PRINT #2, TIME$
CLOSE


hold:
SLEEP 300
GOTO ping



edit:

ok, something new, i suggest you exit this program NOT by using ctrl+brake, but by using alt+f4, ctrl+alt+del or something else using windowes, since pressing any key will result n another ping added to the list. if anybody knows how to solve this, i am all ears.
Title: A request for you coders!
Post by: Sandwich on October 06, 2003, 09:18:30 am
If you're running an NT-flavor (NT, 2K, XP) OS, I'd think that the system logs would record (or could be set to record) network connections/disconnections.
Title: A request for you coders!
Post by: kasperl on October 06, 2003, 10:12:55 am
Quote
Originally posted by Sandwich
If you're running an NT-flavor (NT, 2K, XP) OS, I'd think that the system logs would record (or could be set to record) network connections/disconnections.


good to know that before i start coding......