-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
<?php
/*
rm 'test8.txt\r' 2>&1
chmod 777 vavazz
chown text9.txt;
chgrp www-data .git/FETCH_HEAD
chgrp www-data .git
usermod -a -G root www-data
usermod -a -G steam www-data
chmod -R 0775 7dtd
*/
// Use in the “Post-Receive URLs” section of your GitHub repo.
$output = shell_exec("pwd; cd /home/steam/; who; groups 2>&1; pwd ;whoami;ls -lart");
echo "<pre>$output</pre>";
echo "<label> AAAAA";
if ( $_POST['payload'] ) {
//shell_exec( "cd /home/steam/.steam/steamcmd/7dtd/; git reset –hard HEAD; git pull");
echo shell_exec( "cd /home/steam/.steam/steamcmd/7dtd/; git reset; git pull origin master 2>&1");
}
?>hissdfs
Recent version
<?php
/*
rm 'test8.txt\r' 2>&1
chmod 777 vavazz
chown text9.txt;
chgrp www-data .git/FETCH_HEAD
chgrp www-data .git
usermod -a -G root www-data
usermod -a -G steam www-data
chmod -R 0777 7dtd
*/
// Use in the “Post-Receive URLs” section of your GitHub repo.
$output = shell_exec("pwd; cd /home/steam/; who; groups 2>&1; pwd ;whoami;ls -lart");
echo "<pre>$output</pre>";
echo "<label> AAAAA";
echo shell_exec( "cd /home/steam/.steam/steamcmd/7dtd/ 2>&1;pwd; git reset; git pull origin master 2>&1");
if ( $_POST['payload'] ) {
shell_exec( "cd /home/steam/.steam/steamcmd/7dtd/; git reset –hard HEAD; git pull");
}
?>hissdfs
Metadata
Metadata
Assignees
Labels
No labels