Skip to content

github payload #1

@BoQsc

Description

@BoQsc
<?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 "&lt;label&gt; 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 "&lt;label&gt; 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions