!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/doc/lvm_1.0.6/scripts/   drwxr-xr-x
Free 318.37 GB of 458.09 GB (69.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     patch_fragment.sh (1.2 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/sh

function _help() {
    echo "Usage: patch_fragment <kernel path> <old> <new>";
    exit 1;
}

kernel_path=$1;
shift
orig=$1
shift
new=$1
shift

if [ -z "$kernel_path" -o -z "$orig" -o -z "$new" ]; then
	_help;
fi

# mangle orig so it's relative to the top of the linux source
kernel_path=`echo "$kernel_path" | sed -e 's/\/+$//'`
kernel_path=`echo "$kernel_path" | sed -e 's/\/[^/]*$//'`
relative=${orig:$((${#kernel_path} + 1))};

if ! [ -a $new ]; then
	echo "$new not found" >&2;
	exit 2;
fi

if ! [ -a $orig ];  then
    new_time=`ls --full-time $new`;
    new_time=`echo $new_time | sed -e 's/^\([^ ][^ ]*[[:blank:]][[:blank:]]*\)\{5\}\(\([^ ][^ ]*[[:blank:]][[:blank:]]*\)\{5\}\).*/\2/'`
    echo "--- $relative.orig $new_time";
    echo "+++ $relative $new_time";
    count=`cat $new | wc -l`;
    echo -e "@@ -0,0 +1,$((count)) @@\n";
    cat $new | sed -e 's/^.*/+&/';
else
    expr1="s|\(^---[[:blank:]][[:blank:]]*\)${orig}\([[:blank:]][[:blank:]]*.*\)|\1${relative}\.orig\2|"
    expr2="s|\(^\+\+\+[[:blank:]][[:blank:]]*\)${new}\([[:blank:]][[:blank:]]*.*\)|\1${relative}\2|"
    ( diff -u $orig $new | \
    sed -e "$expr1" -e "$expr2" ) || \
    ( echo "couldn't diff files" && exit 3 );
fi

exit 0;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0257 ]--