Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 18.190.152.109
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
php /
80 /
src /
ext /
standard /
[ HOME SHELL ]
Name
Size
Permission
Action
html_tables
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
Makefile.frag
518
B
-rw-r--r--
Makefile.frag.w32
484
B
-rw-r--r--
array.c
173.39
KB
-rw-r--r--
assert.c
8.25
KB
-rw-r--r--
base64.c
30.63
KB
-rw-r--r--
base64.h
3.59
KB
-rw-r--r--
basic_functions.c
67.72
KB
-rw-r--r--
basic_functions.h
5.03
KB
-rw-r--r--
basic_functions.stub.php
41.8
KB
-rw-r--r--
basic_functions_arginfo.h
123.78
KB
-rw-r--r--
browscap.c
20.65
KB
-rw-r--r--
config.m4
11.12
KB
-rw-r--r--
config.w32
1.79
KB
-rw-r--r--
crc32.c
3.11
KB
-rw-r--r--
crc32.h
4.5
KB
-rw-r--r--
crc32_x86.c
11.99
KB
-rw-r--r--
crc32_x86.h
1.82
KB
-rw-r--r--
credits.c
5.71
KB
-rw-r--r--
credits.h
1.53
KB
-rw-r--r--
credits_ext.h
5.24
KB
-rw-r--r--
credits_sapi.h
835
B
-rw-r--r--
crypt.c
6.73
KB
-rw-r--r--
crypt_blowfish.c
30.75
KB
-rw-r--r--
crypt_blowfish.h
790
B
-rw-r--r--
crypt_freesec.c
21.52
KB
-rw-r--r--
crypt_freesec.h
662
B
-rw-r--r--
crypt_sha256.c
21.6
KB
-rw-r--r--
crypt_sha512.c
26.25
KB
-rw-r--r--
css.c
2.24
KB
-rw-r--r--
css.h
1.04
KB
-rw-r--r--
datetime.c
3.28
KB
-rw-r--r--
datetime.h
1.14
KB
-rw-r--r--
dir.c
13.95
KB
-rw-r--r--
dir.stub.php
387
B
-rw-r--r--
dir_arginfo.h
746
B
-rw-r--r--
dl.c
8.21
KB
-rw-r--r--
dl.h
1.46
KB
-rw-r--r--
dl.stub.php
56
B
-rw-r--r--
dl_arginfo.h
269
B
-rw-r--r--
dns.c
28.31
KB
-rw-r--r--
dns_win32.c
14.9
KB
-rw-r--r--
exec.c
12.78
KB
-rw-r--r--
exec.h
1.27
KB
-rw-r--r--
file.c
64.34
KB
-rw-r--r--
file.h
3.91
KB
-rw-r--r--
filestat.c
26.73
KB
-rw-r--r--
filters.c
50.04
KB
-rw-r--r--
flock_compat.c
6.44
KB
-rw-r--r--
flock_compat.h
2.06
KB
-rw-r--r--
formatted_print.c
23.37
KB
-rw-r--r--
fsock.c
3.67
KB
-rw-r--r--
fsock.h
1.22
KB
-rw-r--r--
ftok.c
1.84
KB
-rw-r--r--
ftp_fopen_wrapper.c
31.59
KB
-rw-r--r--
head.c
10.66
KB
-rw-r--r--
head.h
1.53
KB
-rw-r--r--
hrtime.c
4.86
KB
-rw-r--r--
hrtime.h
2.31
KB
-rw-r--r--
html.c
44.87
KB
-rw-r--r--
html.h
2.35
KB
-rw-r--r--
html_tables.h
472.26
KB
-rw-r--r--
http.c
6.99
KB
-rw-r--r--
http_fopen_wrapper.c
32.39
KB
-rw-r--r--
image.c
41.83
KB
-rw-r--r--
incomplete_class.c
5.16
KB
-rw-r--r--
info.c
39.87
KB
-rw-r--r--
info.h
22.94
KB
-rw-r--r--
iptc.c
9.18
KB
-rw-r--r--
lcg.c
2.8
KB
-rw-r--r--
levenshtein.c
2.57
KB
-rw-r--r--
link.c
5.45
KB
-rw-r--r--
mail.c
16.25
KB
-rw-r--r--
math.c
27.2
KB
-rw-r--r--
md5.c
10.62
KB
-rw-r--r--
md5.h
1.92
KB
-rw-r--r--
metaphone.c
11.53
KB
-rw-r--r--
microtime.c
4.01
KB
-rw-r--r--
mt_rand.c
10.53
KB
-rw-r--r--
net.c
8.97
KB
-rw-r--r--
pack.c
31.01
KB
-rw-r--r--
pack.h
1.05
KB
-rw-r--r--
pageinfo.c
3.23
KB
-rw-r--r--
pageinfo.h
1.15
KB
-rw-r--r--
password.c
19.21
KB
-rw-r--r--
php_array.h
2.25
KB
-rw-r--r--
php_assert.h
1.18
KB
-rw-r--r--
php_browscap.h
1.11
KB
-rw-r--r--
php_crypt.h
1.37
KB
-rw-r--r--
php_crypt_r.c
5.74
KB
-rw-r--r--
php_crypt_r.h
1.63
KB
-rw-r--r--
php_dir.h
1.28
KB
-rw-r--r--
php_dns.h
2.58
KB
-rw-r--r--
php_ext_syslog.h
1.25
KB
-rw-r--r--
php_filestat.h
2.11
KB
-rw-r--r--
php_fopen_wrapper.c
11.47
KB
-rw-r--r--
php_fopen_wrappers.h
1.79
KB
-rw-r--r--
php_http.h
1.44
KB
-rw-r--r--
php_image.h
2.1
KB
-rw-r--r--
php_incomplete_class.h
2.15
KB
-rw-r--r--
php_lcg.h
1.31
KB
-rw-r--r--
php_mail.h
2.16
KB
-rw-r--r--
php_math.h
3.55
KB
-rw-r--r--
php_mt_rand.h
1.81
KB
-rw-r--r--
php_net.h
1.14
KB
-rw-r--r--
php_password.h
2.77
KB
-rw-r--r--
php_rand.h
3
KB
-rw-r--r--
php_random.h
1.87
KB
-rw-r--r--
php_smart_string.h
1.13
KB
-rw-r--r--
php_smart_string_public.h
1.14
KB
-rw-r--r--
php_standard.h
1.91
KB
-rw-r--r--
php_string.h
3.96
KB
-rw-r--r--
php_uuencode.h
1.18
KB
-rw-r--r--
php_var.h
3.41
KB
-rw-r--r--
php_versioning.h
1.18
KB
-rw-r--r--
proc_open.c
35.27
KB
-rw-r--r--
proc_open.h
1.66
KB
-rw-r--r--
quot_print.c
7.05
KB
-rw-r--r--
quot_print.h
1.23
KB
-rw-r--r--
rand.c
2.22
KB
-rw-r--r--
random.c
7.22
KB
-rw-r--r--
scanf.c
28.23
KB
-rw-r--r--
scanf.h
1.95
KB
-rw-r--r--
sha1.c
11.18
KB
-rw-r--r--
sha1.h
1.53
KB
-rw-r--r--
soundex.c
2.94
KB
-rw-r--r--
streamsfuncs.c
43.24
KB
-rw-r--r--
streamsfuncs.h
1.11
KB
-rw-r--r--
string.c
142.27
KB
-rw-r--r--
strnatcmp.c
4.34
KB
-rw-r--r--
syslog.c
6.05
KB
-rw-r--r--
type.c
10.49
KB
-rw-r--r--
uniqid.c
2.43
KB
-rw-r--r--
url.c
18.11
KB
-rw-r--r--
url.h
2.09
KB
-rw-r--r--
url_scanner_ex.c
38.41
KB
-rw-r--r--
url_scanner_ex.h
2.32
KB
-rw-r--r--
url_scanner_ex.re
27.63
KB
-rw-r--r--
user_filters.c
16.53
KB
-rw-r--r--
user_filters.stub.php
371
B
-rw-r--r--
user_filters_arginfo.h
987
B
-rw-r--r--
uuencode.c
6.35
KB
-rw-r--r--
var.c
37.2
KB
-rw-r--r--
var_unserializer.c
37.95
KB
-rw-r--r--
var_unserializer.re
30.26
KB
-rw-r--r--
versioning.c
5.61
KB
-rw-r--r--
winver.h
6.23
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : sha1.c
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Author: Stefan Esser <sesser@php.net> | +----------------------------------------------------------------------+ */ #include "php.h" /* This code is heavily based on the PHP md5 implementation */ #include "sha1.h" #include "md5.h" PHPAPI void make_sha1_digest(char *sha1str, const unsigned char *digest) { make_digest_ex(sha1str, digest, 20); } /* {{{ Calculate the sha1 hash of a string */ PHP_FUNCTION(sha1) { zend_string *arg; zend_bool raw_output = 0; PHP_SHA1_CTX context; unsigned char digest[20]; ZEND_PARSE_PARAMETERS_START(1, 2) Z_PARAM_STR(arg) Z_PARAM_OPTIONAL Z_PARAM_BOOL(raw_output) ZEND_PARSE_PARAMETERS_END(); PHP_SHA1Init(&context); PHP_SHA1Update(&context, (unsigned char *) ZSTR_VAL(arg), ZSTR_LEN(arg)); PHP_SHA1Final(digest, &context); if (raw_output) { RETURN_STRINGL((char *) digest, 20); } else { RETVAL_NEW_STR(zend_string_alloc(40, 0)); make_digest_ex(Z_STRVAL_P(return_value), digest, 20); } } /* }}} */ /* {{{ Calculate the sha1 hash of given filename */ PHP_FUNCTION(sha1_file) { char *arg; size_t arg_len; zend_bool raw_output = 0; unsigned char buf[1024]; unsigned char digest[20]; PHP_SHA1_CTX context; ssize_t n; php_stream *stream; ZEND_PARSE_PARAMETERS_START(1, 2) Z_PARAM_PATH(arg, arg_len) Z_PARAM_OPTIONAL Z_PARAM_BOOL(raw_output) ZEND_PARSE_PARAMETERS_END(); stream = php_stream_open_wrapper(arg, "rb", REPORT_ERRORS, NULL); if (!stream) { RETURN_FALSE; } PHP_SHA1Init(&context); while ((n = php_stream_read(stream, (char *) buf, sizeof(buf))) > 0) { PHP_SHA1Update(&context, buf, n); } PHP_SHA1Final(digest, &context); php_stream_close(stream); if (raw_output) { RETURN_STRINGL((char *) digest, 20); } else { RETVAL_NEW_STR(zend_string_alloc(40, 0)); make_digest_ex(Z_STRVAL_P(return_value), digest, 20); } } /* }}} */ static void SHA1Transform(uint32_t[5], const unsigned char[64]); static void SHA1Encode(unsigned char *, uint32_t *, unsigned int); static void SHA1Decode(uint32_t *, const unsigned char *, unsigned int); static const unsigned char PADDING[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; /* F, G, H and I are basic SHA1 functions. */ #define F(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) #define G(x, y, z) ((x) ^ (y) ^ (z)) #define H(x, y, z) (((x) & (y)) | ((z) & ((x) | (y)))) #define I(x, y, z) ((x) ^ (y) ^ (z)) /* ROTATE_LEFT rotates x left n bits. */ #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) /* W[i] */ #define W(i) ( tmp=x[(i-3)&15]^x[(i-8)&15]^x[(i-14)&15]^x[i&15], \ (x[i&15]=ROTATE_LEFT(tmp, 1)) ) /* FF, GG, HH, and II transformations for rounds 1, 2, 3, and 4. */ #define FF(a, b, c, d, e, w) { \ (e) += F ((b), (c), (d)) + (w) + (uint32_t)(0x5A827999); \ (e) += ROTATE_LEFT ((a), 5); \ (b) = ROTATE_LEFT((b), 30); \ } #define GG(a, b, c, d, e, w) { \ (e) += G ((b), (c), (d)) + (w) + (uint32_t)(0x6ED9EBA1); \ (e) += ROTATE_LEFT ((a), 5); \ (b) = ROTATE_LEFT((b), 30); \ } #define HH(a, b, c, d, e, w) { \ (e) += H ((b), (c), (d)) + (w) + (uint32_t)(0x8F1BBCDC); \ (e) += ROTATE_LEFT ((a), 5); \ (b) = ROTATE_LEFT((b), 30); \ } #define II(a, b, c, d, e, w) { \ (e) += I ((b), (c), (d)) + (w) + (uint32_t)(0xCA62C1D6); \ (e) += ROTATE_LEFT ((a), 5); \ (b) = ROTATE_LEFT((b), 30); \ } /* {{{ PHP_SHA1Init * SHA1 initialization. Begins an SHA1 operation, writing a new context. */ PHPAPI void PHP_SHA1Init(PHP_SHA1_CTX * context) { context->count[0] = context->count[1] = 0; /* Load magic initialization constants. */ context->state[0] = 0x67452301; context->state[1] = 0xefcdab89; context->state[2] = 0x98badcfe; context->state[3] = 0x10325476; context->state[4] = 0xc3d2e1f0; } /* }}} */ /* {{{ PHP_SHA1Update SHA1 block update operation. Continues an SHA1 message-digest operation, processing another message block, and updating the context. */ PHPAPI void PHP_SHA1Update(PHP_SHA1_CTX * context, const unsigned char *input, size_t inputLen) { unsigned int i, index, partLen; /* Compute number of bytes mod 64 */ index = (unsigned int) ((context->count[0] >> 3) & 0x3F); /* Update number of bits */ if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) context->count[1]++; context->count[1] += ((uint32_t) inputLen >> 29); partLen = 64 - index; /* Transform as many times as possible. */ if (inputLen >= partLen) { memcpy ((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); SHA1Transform(context->state, context->buffer); for (i = partLen; i + 63 < inputLen; i += 64) SHA1Transform(context->state, &input[i]); index = 0; } else i = 0; /* Buffer remaining input */ memcpy ((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); } /* }}} */ /* {{{ PHP_SHA1Final SHA1 finalization. Ends an SHA1 message-digest operation, writing the the message digest and zeroizing the context. */ PHPAPI void PHP_SHA1Final(unsigned char digest[20], PHP_SHA1_CTX * context) { unsigned char bits[8]; unsigned int index, padLen; /* Save number of bits */ bits[7] = context->count[0] & 0xFF; bits[6] = (context->count[0] >> 8) & 0xFF; bits[5] = (context->count[0] >> 16) & 0xFF; bits[4] = (context->count[0] >> 24) & 0xFF; bits[3] = context->count[1] & 0xFF; bits[2] = (context->count[1] >> 8) & 0xFF; bits[1] = (context->count[1] >> 16) & 0xFF; bits[0] = (context->count[1] >> 24) & 0xFF; /* Pad out to 56 mod 64. */ index = (unsigned int) ((context->count[0] >> 3) & 0x3f); padLen = (index < 56) ? (56 - index) : (120 - index); PHP_SHA1Update(context, PADDING, padLen); /* Append length (before padding) */ PHP_SHA1Update(context, bits, 8); /* Store state in digest */ SHA1Encode(digest, context->state, 20); /* Zeroize sensitive information. */ ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); } /* }}} */ /* {{{ SHA1Transform * SHA1 basic transformation. Transforms state based on block. */ static void SHA1Transform(state, block) uint32_t state[5]; const unsigned char block[64]; { uint32_t a = state[0], b = state[1], c = state[2]; uint32_t d = state[3], e = state[4], x[16], tmp; SHA1Decode(x, block, 64); /* Round 1 */ FF(a, b, c, d, e, x[0]); /* 1 */ FF(e, a, b, c, d, x[1]); /* 2 */ FF(d, e, a, b, c, x[2]); /* 3 */ FF(c, d, e, a, b, x[3]); /* 4 */ FF(b, c, d, e, a, x[4]); /* 5 */ FF(a, b, c, d, e, x[5]); /* 6 */ FF(e, a, b, c, d, x[6]); /* 7 */ FF(d, e, a, b, c, x[7]); /* 8 */ FF(c, d, e, a, b, x[8]); /* 9 */ FF(b, c, d, e, a, x[9]); /* 10 */ FF(a, b, c, d, e, x[10]); /* 11 */ FF(e, a, b, c, d, x[11]); /* 12 */ FF(d, e, a, b, c, x[12]); /* 13 */ FF(c, d, e, a, b, x[13]); /* 14 */ FF(b, c, d, e, a, x[14]); /* 15 */ FF(a, b, c, d, e, x[15]); /* 16 */ FF(e, a, b, c, d, W(16)); /* 17 */ FF(d, e, a, b, c, W(17)); /* 18 */ FF(c, d, e, a, b, W(18)); /* 19 */ FF(b, c, d, e, a, W(19)); /* 20 */ /* Round 2 */ GG(a, b, c, d, e, W(20)); /* 21 */ GG(e, a, b, c, d, W(21)); /* 22 */ GG(d, e, a, b, c, W(22)); /* 23 */ GG(c, d, e, a, b, W(23)); /* 24 */ GG(b, c, d, e, a, W(24)); /* 25 */ GG(a, b, c, d, e, W(25)); /* 26 */ GG(e, a, b, c, d, W(26)); /* 27 */ GG(d, e, a, b, c, W(27)); /* 28 */ GG(c, d, e, a, b, W(28)); /* 29 */ GG(b, c, d, e, a, W(29)); /* 30 */ GG(a, b, c, d, e, W(30)); /* 31 */ GG(e, a, b, c, d, W(31)); /* 32 */ GG(d, e, a, b, c, W(32)); /* 33 */ GG(c, d, e, a, b, W(33)); /* 34 */ GG(b, c, d, e, a, W(34)); /* 35 */ GG(a, b, c, d, e, W(35)); /* 36 */ GG(e, a, b, c, d, W(36)); /* 37 */ GG(d, e, a, b, c, W(37)); /* 38 */ GG(c, d, e, a, b, W(38)); /* 39 */ GG(b, c, d, e, a, W(39)); /* 40 */ /* Round 3 */ HH(a, b, c, d, e, W(40)); /* 41 */ HH(e, a, b, c, d, W(41)); /* 42 */ HH(d, e, a, b, c, W(42)); /* 43 */ HH(c, d, e, a, b, W(43)); /* 44 */ HH(b, c, d, e, a, W(44)); /* 45 */ HH(a, b, c, d, e, W(45)); /* 46 */ HH(e, a, b, c, d, W(46)); /* 47 */ HH(d, e, a, b, c, W(47)); /* 48 */ HH(c, d, e, a, b, W(48)); /* 49 */ HH(b, c, d, e, a, W(49)); /* 50 */ HH(a, b, c, d, e, W(50)); /* 51 */ HH(e, a, b, c, d, W(51)); /* 52 */ HH(d, e, a, b, c, W(52)); /* 53 */ HH(c, d, e, a, b, W(53)); /* 54 */ HH(b, c, d, e, a, W(54)); /* 55 */ HH(a, b, c, d, e, W(55)); /* 56 */ HH(e, a, b, c, d, W(56)); /* 57 */ HH(d, e, a, b, c, W(57)); /* 58 */ HH(c, d, e, a, b, W(58)); /* 59 */ HH(b, c, d, e, a, W(59)); /* 60 */ /* Round 4 */ II(a, b, c, d, e, W(60)); /* 61 */ II(e, a, b, c, d, W(61)); /* 62 */ II(d, e, a, b, c, W(62)); /* 63 */ II(c, d, e, a, b, W(63)); /* 64 */ II(b, c, d, e, a, W(64)); /* 65 */ II(a, b, c, d, e, W(65)); /* 66 */ II(e, a, b, c, d, W(66)); /* 67 */ II(d, e, a, b, c, W(67)); /* 68 */ II(c, d, e, a, b, W(68)); /* 69 */ II(b, c, d, e, a, W(69)); /* 70 */ II(a, b, c, d, e, W(70)); /* 71 */ II(e, a, b, c, d, W(71)); /* 72 */ II(d, e, a, b, c, W(72)); /* 73 */ II(c, d, e, a, b, W(73)); /* 74 */ II(b, c, d, e, a, W(74)); /* 75 */ II(a, b, c, d, e, W(75)); /* 76 */ II(e, a, b, c, d, W(76)); /* 77 */ II(d, e, a, b, c, W(77)); /* 78 */ II(c, d, e, a, b, W(78)); /* 79 */ II(b, c, d, e, a, W(79)); /* 80 */ state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e; /* Zeroize sensitive information. */ ZEND_SECURE_ZERO((unsigned char*) x, sizeof(x)); } /* }}} */ /* {{{ SHA1Encode Encodes input (uint32_t) into output (unsigned char). Assumes len is a multiple of 4. */ static void SHA1Encode(output, input, len) unsigned char *output; uint32_t *input; unsigned int len; { unsigned int i, j; for (i = 0, j = 0; j < len; i++, j += 4) { output[j] = (unsigned char) ((input[i] >> 24) & 0xff); output[j + 1] = (unsigned char) ((input[i] >> 16) & 0xff); output[j + 2] = (unsigned char) ((input[i] >> 8) & 0xff); output[j + 3] = (unsigned char) (input[i] & 0xff); } } /* }}} */ /* {{{ SHA1Decode Decodes input (unsigned char) into output (uint32_t). Assumes len is a multiple of 4. */ static void SHA1Decode(output, input, len) uint32_t *output; const unsigned char *input; unsigned int len; { unsigned int i, j; for (i = 0, j = 0; j < len; i++, j += 4) output[i] = ((uint32_t) input[j + 3]) | (((uint32_t) input[j + 2]) << 8) | (((uint32_t) input[j + 1]) << 16) | (((uint32_t) input[j]) << 24); } /* }}} */
Close