Wednesday, September 08, 2010 03:46:30Login · Register
 

    Challenge Activity
02:59:54 - lacanian
     - Completed basic [13]
02:47:44 - chuiy
     - Completed basic [8]
10:12:24 - blabla
     - Completed basic [2]
10:04:32 - blabla
     - Completed basic [1]
09:22:30 - satishek
     - Completed privilege [4]
09:13:29 - mandrake
     - Completed crack [2]
04:18:55 - Iceheart456
     - Completed decrypt [3]
04:18:28 - InferiorHell
     - Completed decrypt [3]
04:18:12 - Iceheart456
     - Completed decrypt [2]
04:17:02 - Iceheart456
     - Completed decrypt [1]
04:16:34 - InferiorHell
     - Completed decrypt [2]
03:54:07 - InferiorHell
     - Completed decrypt [1]
03:42:18 - InferiorHell
     - Completed basic [4]
03:06:00 - mandrake
     - Completed decrypt [7]
02:54:04 - lacanian
     - Completed basic [12]
02:31:49 - am107cs019
     - Completed decrypt [7]
 

    Scoreboard Top 20
UserPoints
Abhineet4795   
auditorsec4795   
ne0114795   
Null Set4795   
blandyuk4780   
bluechill4750   
Teddy4730   
TurboBorland4475   
Qwexotic4460   
tiiger11114205   
preet4180   
LiquidFusi0n4175   
OnlyHuman4125   
samthg4110   
satishek3900   
pilchdragon3660   
Override3655   
chronic123640   
dash803590   
Torrment3515   
 

    Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
 

    Users Online
· Guests Online: 8

· Members Online: 0

· Members on IRC: 6
TurboBorland, sirEgghead, Satan911, NoX, louve, LK

· Bots Online: 1
GoogleBot

· Total Members: 1,476
· Newest Member: blabla
 

 

 

 

    Top 10 Forum Posters
UserPosts
bluechill915   
Qwexotic692   
cruizrisner476   
Null Set350   
TurboBorland331   
Stormc1nd3r308   
auditorsec299   
madf0x296   
Override238   
jakecrepinsek235   
 

    Affiliates
 

Simple Perl Server
file.pl

Download source  GeSHi: Perl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use strict; 
use Socket; 
 
print "Input the number of the port you would like to open.n";
my $port = shift || <STDIN>;
chomp($port);
print "How would you like to greet visitors?n";
my $var1 = <STDIN>;
chomp($var1);
my $proto = getprotobyname('tcp');
socket(SERVER, PF_INET, SOCK_STREAM, $proto) or die "socket: $!";
setsockopt(SERVER, SOL_SOCKET, SO_REUSEADDR, 1) or die "setsock: $!";
my $paddr = sockaddr_in($port, INADDR_ANY);
bind(SERVER, $paddr) or die "bind: $!";
listen(SERVER, SOMAXCONN) or die "listen: $!";
print "SERVER started on port $port ";
my $client_addr;
while ($client_addr = accept(CLIENT, SERVER))
{
my ($client_port, $client_ip) = sockaddr_in($client_addr);
my $client_ipnum = inet_ntoa($client_ip);
my $client_host = gethostbyaddr($client_ip, AF_INET);
print "Got a connection from: $client_host","[$client_ipnum]n";
print CLIENT "$var1";
close CLIENT;
}
Parsed in 0.016 seconds, using GeSHi 1.0.8.6
Comments
 
#1 | skiddieteh0ne on 05/03/2010 09:17
Thanks
#2 | nullbyt3 on 07/28/2010 21:17
Same as the client, this code is very buggy and would never run in its present state.
 
 
Post Comment
 
Please Login to Post a Comment.
 
 
Ratings
 
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.