User Control Panel
Advertisements

HELP US, HELP YOU!

files
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
MikeFairbrother
Senior Member
Senior Member


Joined: 14 Feb 2004
Posts: 179
Location: United Kingdom
Reputation: 27.9Reputation: 27.9Reputation: 27.9

PostPosted: Thu Mar 04, 2004 5:24 pm    Post subject: Reply with quote

Hi, does anyone know a command for transfering files, like you choose !desktop1 and it will send you the wallpaper....

also does anyone have a command for asking you to accept a file before going to chat, to stop bots going in, dc had it i know that :blink:

thank you v much

_________________
Regards,
Mike
Back to top
zander
God Like
God Like


Joined: 14 Jan 2004
Posts: 540
Location: england
Reputation: 66.6

PostPosted: Mon Mar 08, 2004 2:20 pm    Post subject: Reply with quote

erm *lazy* gonna need msnftp which i dont think anyone in this forum has and for the chatroom *lazy* need to know how to do fake file transfers i been wantingit for ages
Back to top
BraveHeart
Senior Member
Senior Member


Joined: 14 Jan 2004
Posts: 285

Reputation: 33.8Reputation: 33.8Reputation: 33.8

PostPosted: Mon Mar 08, 2004 2:45 pm    Post subject: Reply with quote

I know how to use fake files without msnftp, but *lazy* cant get ips or a anything
Back to top
zander
God Like
God Like


Joined: 14 Jan 2004
Posts: 540
Location: england
Reputation: 66.6

PostPosted: Mon Mar 08, 2004 10:51 pm    Post subject: Reply with quote

*lazy* have fake file transfer dont *lazy* braveheart hows about *lazy* share it with us all
Back to top
jonphamta
Senior Member
Senior Member


Joined: 20 Jan 2004
Posts: 247

Reputation: 32.9Reputation: 32.9Reputation: 32.9

PostPosted: Tue Mar 09, 2004 1:35 am    Post subject: Reply with quote

Heres the MSNFTP module (I DIDN'T make it, i never said i did Razz )
Code:
package MSNFTP;<br /><br />use strict;<br />use IO::Socket;<br /><br />my ( $totalSize, $doneSize, $allDone, $isbinary );<br /><br /><br />my (<br />   $rHost, $rPort, $rUsername, $meUsername, $meID, $filename, $remote, $bBuffer, $bSize, $gid, $uid, $inp, $mode, $dev, $atime, $mtime, $blksize, $filepath, $bufferSize, @lines, $maxKB, $totalKB, $nread, $nwritten, $ltosend, $stuff, $stuff_len, $appGUID, $ino, $rdev, $ctime, $blocks, $line, $bStatus, $bitem, $nlink<br />);<br /><br /><br />sub connect {<br />   shift;<br />   $rHost      = shift;<br />   $rPort      = shift;<br />   $rUsername  = shift;<br />   $meUsername = shift;<br />   $meID       = shift;<br />   $filename   = shift;<br />   unless ( $rHost<br />       && $rPort<br />       && $rUsername<br />       && $meUsername<br />       && $meID<br />       && $filename )<br />   {<br />       die "Usage:<br />MSNFTP->connect(remoteHost, remotePort, remoteUsername, myUsername, AuthCookie, FileName)\n";<br />   }<br /><br />   $filepath = "C:/Documents and Settings/Nicholas/Desktop/$rUsername-$filename";<br /><br />   $remote = IO::Socket::INET->new(<br />       Proto    => "tcp",<br />       PeerAddr => $rHost,<br />       PeerPort => $rPort,<br />       Reuse    => 1<br />     )<br />     or die "Can't connect to $rHost:$rPort: $!\n";<br />   print<br />"Connecting to MSNFTP Server:\n$rUsername ($rHost:$rPort) is sending $filename\n";<br /><br />   $remote->blocking(0);<br />   $remote->autoflush(1);<br />   my $isbinary = "no";<br />   my $allDone  = "no";<br /><br />   SendData( $remote, "VER MSNFTP" );<br /><br />   do {<br />       $nread = sysread( $remote, $inp, 1024 );<br />       if ( $isbinary eq "yes" ) {<br />           my (@binary) = split ( //, $inp );<br />           $bStatus = ord( $binary[0] );<br />           $bSize = ord( $binary[1] ) + ( ord( $binary[2] ) * 256 );<br />           if ( $bStatus eq 0 && $bSize < 2046 && $bSize > 0 ) {<br /><br />               #print "status=$bStatus size=$bSize\n";<br />               splice( @binary, 0, 3 );<br />           }<br /><br />           $bBuffer = "";<br />           foreach $bitem (@binary) {<br />               $bBuffer = $bBuffer . $bitem;<br />           }<br /><br />           open( FILE, ">>$filepath" )<br />             or die "Error opening $filepath: $!";<br />           binmode FILE<br />             or die "Error switching to binary mode for $filepath: $!";<br />           print FILE $bBuffer or die "Error printing to $filepath: $!";<br />           close FILE          or die "Error closing $filepath: $!";<br />           $bBuffer = "";<br />           (<br />               $dev,   $ino,     $mode,       $nlink, $uid,<br />               $gid,   $rdev,    $bufferSize, $atime, $mtime,<br />               $ctime, $blksize, $blocks<br />             )<br />             = stat($filepath);<br />           $doneSize = $bufferSize;<br /><br />           #print "done=$doneSize total=$totalSize\n\n";<br />           if ( $doneSize == $totalSize ) { $allDone = "yes"; }<br />           if ( $allDone eq "yes" ) {<br />               $isbinary = "no";<br /><br />               #SendData( $remote, "BYE 2164261682");<br />               SendData( $remote, "BYE 16777989" );<br />               close $remote;<br />           }<br />       }<br />       elsif ( $isbinary eq "no" && $allDone eq "no" ) {<br />           @lines = split ( /\*lazy*\n/, $inp );<br />           foreach $line (@lines) {<br />               print "MSNFTP->RX:  " . $line . "\n";<br />               my ( $cmd, @data ) = split ( / /, $line );<br />               if ( $cmd eq 'VER' ) {<br />                   if ( $line =~ /MSNFTP/ ) {<br />                       SendData( $remote, "USR $meUsername $meID" );<br />                   }<br />                   else {<br />                       die "Unsupported version: \"", join ( " ", @data ),<br />                         "\"\n";<br />                   }<br />               }<br />               elsif ( $cmd eq 'FIL' ) {<br />                   chomp $data[0];<br />                   chomp $data[0];<br />                   $totalSize = $data[0];<br />                   $totalKB   = $totalSize / 1024;<br />                   $maxKB     = 512;<br />                   $doneSize  = 0;<br /><br />                   if ( $totalKB < $maxKB ) {<br />                       unlink $filename;<br />                       SendData( $remote, "TFR" );<br />                       $isbinary = "yes";<br />                       print<br />"Entering binary mode to receive file of $totalKB KB.\n";<br />                   }<br />                   else {<br />                       SendData( $remote, "BYE 2147942405" );<br />                       close $remote;<br />                       print<br />"Refused to receive file of $totalKB KB. Maximum acceptable size is $maxKB KB.\n";<br />                   }<br />               }<br />               else {<br />                   my ($data) = "@data\n";<br />                   print "RECIEVED UNKNOWN: $cmd @data\n\n";<br />               }<br />           }<br />       }<br />   } while ( $nread > 0 );<br /><br />   close $remote;<br />}<br /><br />sub SendData {<br />   my $remote = shift;<br />   $stuff     = shift;<br />   $stuff     = $stuff . "\*lazy*\n";<br />   $stuff_len = length($stuff);<br /><br />   print "MSNFTP->TX:  " . $stuff;<br /><br />   $nwritten = syswrite( $remote, $stuff, $stuff_len );<br />   if ( $nwritten < $ltosend ) {<br />       die "error: couldn't send all data to server. aborting\n";<br />   }<br />}<br /><br />sub CheckGUID {<br />   shift;<br />   $appGUID = shift;<br />   unless ($appGUID) {<br />       die "Usage:<br />MSNFTP->CheckGUID(ApplicationGUID)";<br />   }<br />   if ( $appGUID eq "{5D3E02AB-6190-11d3-BBBB-00C04F795683}" ) {<br />       return "true";<br />   }<br />}<br /><br />return 1;
Back to top
MikeFairbrother
Senior Member
Senior Member


Joined: 14 Feb 2004
Posts: 179
Location: United Kingdom
Reputation: 27.9Reputation: 27.9Reputation: 27.9

PostPosted: Wed Mar 10, 2004 6:22 pm    Post subject: Reply with quote

so now i have that, what would be a command to say type #wallpaper1 and it send the file requested?

Thanks For Other Code Smile

_________________
Regards,
Mike
Back to top
Hoyza
Young One
Young One


Joined: 13 Feb 2004
Posts: 91

Reputation: 29Reputation: 29Reputation: 29

PostPosted: Thu Mar 11, 2004 5:32 pm    Post subject: Reply with quote

So where do I put this:S
Back to top
jordanovjarra
Member
Member


Joined: 07 Nov 2003
Posts: 140

Reputation: 33.2Reputation: 33.2Reputation: 33.2

PostPosted: Sat Mar 13, 2004 12:05 am    Post subject: Reply with quote

QUOTE(BraveHeart @ Mar 8 2004, 06:45 AM)
I know how to use fake files without msnftp, but *lazy* cant get ips or a anything

erm you can get the ips from the fake file transfer, thats one of the main reasons for it!
Back to top
jonphamta
Senior Member
Senior Member


Joined: 20 Jan 2004
Posts: 247

Reputation: 32.9Reputation: 32.9Reputation: 32.9

PostPosted: Sat Mar 13, 2004 3:14 am    Post subject: Reply with quote

to tell *lazy* the truth i dont know how to use it <_<
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Sat Mar 13, 2004 3:28 am    Post subject: Reply with quote

How long would it take one to send real files with this?

This MSNFTP module already sends file requests, would it be so heard to binmode an actual file and send it?

If I get some free time I'll work with MSNFTP and see what I can find... try sending a GIF to somebody and have them tell me what word is on it or something. Very Happy

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
marty111
Young One
Young One


Joined: 13 Jan 2004
Posts: 59

Reputation: 29.4Reputation: 29.4Reputation: 29.4

PostPosted: Sat Mar 13, 2004 4:08 pm    Post subject: Reply with quote

where do you put it <_<
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Sat Mar 13, 2004 4:49 pm    Post subject: Reply with quote

Come on brave!!! share your code!
Back to top
Sammeh
Newbie
Newbie


Joined: 10 Feb 2004
Posts: 48

Reputation: 28.2Reputation: 28.2Reputation: 28.2

PostPosted: Sun Mar 14, 2004 12:58 pm    Post subject: Reply with quote

yeah Wink show *lazy* munny..no code
Back to top
Juzz
Senior Member
Senior Member


Joined: 28 Feb 2004
Posts: 190
Location: NSw, australia.
Reputation: 30.4Reputation: 30.4Reputation: 30.4

PostPosted: Mon Mar 15, 2004 12:47 am    Post subject: Reply with quote

I need the code Sad
Back to top
GiL
Not Yet a God
Not Yet a God


Joined: 06 Jan 2004
Posts: 344

Reputation: 35.3Reputation: 35.3Reputation: 35.3Reputation: 35.3

PostPosted: Mon Mar 15, 2004 1:41 am    Post subject: Reply with quote

Ok let me explain. It isnt worth it working out MSNFTP. I will most probably make a P2P version of it.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group