Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
linux-headers-4.4.0-119 /
scripts /
Delete
Unzip
Name
Size
Permission
Date
Action
basic
[ DIR ]
drwxr-xr-x
2018-04-05 07:11
coccinelle
[ DIR ]
drwxr-xr-x
2018-04-05 07:11
dtc
[ DIR ]
drwxr-xr-x
2018-04-05 07:11
gdb
[ DIR ]
drwxr-xr-x
2018-04-05 07:11
genksyms
[ DIR ]
drwxr-xr-x
2018-04-05 07:11
kconfig
[ DIR ]
drwxr-xr-x
2018-04-05 07:11
ksymoops
[ DIR ]
drwxr-xr-x
2018-04-05 07:11
mod
[ DIR ]
drwxr-xr-x
2018-04-05 07:11
package
[ DIR ]
drwxr-xr-x
2018-04-05 07:11
selinux
[ DIR ]
drwxr-xr-x
2018-04-05 07:11
tracing
[ DIR ]
drwxr-xr-x
2018-04-05 07:11
.gitignore
154
B
-rw-r--r--
2016-01-11 00:01
Kbuild.include
13.07
KB
-rw-r--r--
2016-01-11 00:01
Lindent
496
B
-rwxr-xr-x
2016-01-11 00:01
Makefile
1.79
KB
-rw-r--r--
2018-04-02 18:07
Makefile.asm-generic
683
B
-rw-r--r--
2016-01-11 00:01
Makefile.build
16.5
KB
-rw-r--r--
2018-04-02 18:07
Makefile.clean
2.83
KB
-rw-r--r--
2016-01-11 00:01
Makefile.dtbinst
1.41
KB
-rw-r--r--
2016-01-11 00:01
Makefile.extrawarn
2.42
KB
-rw-r--r--
2018-04-02 18:07
Makefile.fwinst
2.01
KB
-rw-r--r--
2016-01-11 00:01
Makefile.headersinst
4.65
KB
-rw-r--r--
2016-01-11 00:01
Makefile.help
68
B
-rw-r--r--
2016-01-11 00:01
Makefile.host
4.51
KB
-rw-r--r--
2016-01-11 00:01
Makefile.kasan
934
B
-rw-r--r--
2016-01-11 00:01
Makefile.lib
13.99
KB
-rw-r--r--
2016-01-11 00:01
Makefile.modbuiltin
1.78
KB
-rw-r--r--
2016-01-11 00:01
Makefile.modinst
1.43
KB
-rw-r--r--
2018-04-02 18:07
Makefile.modpost
5.27
KB
-rw-r--r--
2016-01-11 00:01
Makefile.modsign
1005
B
-rw-r--r--
2016-01-11 00:01
analyze_suspend.py
117.57
KB
-rwxr-xr-x
2016-01-11 00:01
asn1_compiler.c
35.54
KB
-rw-r--r--
2016-01-11 00:01
bloat-o-meter
1.9
KB
-rwxr-xr-x
2018-04-02 18:07
bootgraph.pl
6.28
KB
-rwxr-xr-x
2016-01-11 00:01
check-lc_ctype.c
201
B
-rw-r--r--
2016-01-11 00:01
check_extable.sh
4.9
KB
-rwxr-xr-x
2016-01-11 00:01
checkincludes.pl
1.77
KB
-rwxr-xr-x
2016-01-11 00:01
checkkconfigsymbols.py
11.44
KB
-rwxr-xr-x
2016-01-11 00:01
checkpatch.pl
169.77
KB
-rwxr-xr-x
2018-04-02 18:07
checkstack.pl
5.38
KB
-rwxr-xr-x
2016-01-11 00:01
checksyscalls.sh
5.62
KB
-rwxr-xr-x
2016-01-11 00:01
checkversion.pl
1.86
KB
-rwxr-xr-x
2016-01-11 00:01
cleanfile
3.41
KB
-rwxr-xr-x
2016-01-11 00:01
cleanpatch
5.01
KB
-rwxr-xr-x
2016-01-11 00:01
coccicheck
4.66
KB
-rwxr-xr-x
2016-01-11 00:01
config
4.49
KB
-rwxr-xr-x
2016-01-11 00:01
conmakehash.c
5.98
KB
-rw-r--r--
2016-01-11 00:01
decode_stacktrace.sh
3.09
KB
-rwxr-xr-x
2016-01-11 00:01
decodecode
2.15
KB
-rwxr-xr-x
2016-01-11 00:01
depmod.sh
1.67
KB
-rwxr-xr-x
2016-01-11 00:01
diffconfig
3.68
KB
-rwxr-xr-x
2016-01-11 00:01
docproc.c
13.8
KB
-rw-r--r--
2016-01-11 00:01
export_report.pl
4.53
KB
-rwxr-xr-x
2016-01-11 00:01
extract-cert.c
3.46
KB
-rw-r--r--
2016-01-11 00:01
extract-ikconfig
1.69
KB
-rwxr-xr-x
2016-01-11 00:01
extract-module-sig.pl
3.61
KB
-rwxr-xr-x
2016-01-11 00:01
extract-sys-certs.pl
3.7
KB
-rwxr-xr-x
2018-04-02 18:07
extract-vmlinux
1.6
KB
-rwxr-xr-x
2016-01-11 00:01
gcc-goto.sh
495
B
-rwxr-xr-x
2016-01-11 00:01
gcc-ld
676
B
-rwxr-xr-x
2016-01-11 00:01
gcc-version.sh
822
B
-rwxr-xr-x
2016-01-11 00:01
gcc-x86_32-has-stack-protector.sh
184
B
-rwxr-xr-x
2016-01-11 00:01
gcc-x86_64-has-stack-protector.sh
209
B
-rwxr-xr-x
2018-04-02 18:07
gen_initramfs_list.sh
7.87
KB
-rwxr-xr-x
2016-01-11 00:01
get_maintainer.pl
58.29
KB
-rwxr-xr-x
2016-01-11 00:01
gfp-translate
1.71
KB
-rwxr-xr-x
2016-01-11 00:01
headerdep.pl
3.46
KB
-rwxr-xr-x
2016-01-11 00:01
headers.sh
477
B
-rwxr-xr-x
2016-01-11 00:01
headers_check.pl
3.6
KB
-rwxr-xr-x
2016-01-11 00:01
headers_install.sh
1.28
KB
-rwxr-xr-x
2016-01-11 00:01
insert-sys-cert.c
13.08
KB
-rw-r--r--
2018-04-02 18:07
kallsyms.c
16.68
KB
-rw-r--r--
2016-01-11 00:01
kernel-doc
76.05
KB
-rwxr-xr-x
2016-01-11 00:01
kernel-doc-xml-ref
4.22
KB
-rwxr-xr-x
2016-01-11 00:01
ld-version.sh
207
B
-rwxr-xr-x
2018-04-02 18:07
link-vmlinux.sh
5.84
KB
-rwxr-xr-x
2018-04-02 18:07
makelst
773
B
-rwxr-xr-x
2016-01-11 00:01
markup_oops.pl
8.08
KB
-rwxr-xr-x
2016-01-11 00:01
mkcompile_h
2.46
KB
-rwxr-xr-x
2016-01-11 00:01
mkmakefile
1.16
KB
-rwxr-xr-x
2016-01-11 00:01
mksysmap
1.33
KB
-rwxr-xr-x
2016-01-11 00:01
mkuboot.sh
379
B
-rwxr-xr-x
2016-01-11 00:01
mkversion
74
B
-rw-r--r--
2016-01-11 00:01
module-common.lds
888
B
-rw-r--r--
2018-04-02 18:07
namespace.pl
13
KB
-rwxr-xr-x
2016-01-11 00:01
objdiff
2.69
KB
-rwxr-xr-x
2016-01-11 00:01
patch-kernel
9.91
KB
-rwxr-xr-x
2016-01-11 00:01
pnmtologo.c
11.91
KB
-rw-r--r--
2016-01-11 00:01
profile2linkerlist.pl
375
B
-rwxr-xr-x
2016-01-11 00:01
recordmcount.c
15.02
KB
-rw-r--r--
2018-04-02 18:07
recordmcount.h
16.38
KB
-rw-r--r--
2016-01-11 00:01
recordmcount.pl
17.9
KB
-rwxr-xr-x
2018-04-02 18:07
setlocalversion
3.88
KB
-rwxr-xr-x
2016-01-11 00:01
show_delta
2.99
KB
-rwxr-xr-x
2016-01-11 00:01
sign-file.c
8.14
KB
-rwxr-xr-x
2016-01-11 00:01
sortextable.c
7.65
KB
-rw-r--r--
2016-01-11 00:01
sortextable.h
5.48
KB
-rw-r--r--
2016-01-11 00:01
spelling.txt
21.33
KB
-rw-r--r--
2016-01-11 00:01
stackdelta
1.8
KB
-rwxr-xr-x
2016-01-11 00:01
stackusage
759
B
-rwxr-xr-x
2016-01-11 00:01
tags.sh
10.56
KB
-rwxr-xr-x
2016-01-11 00:01
unifdef.c
34.8
KB
-rw-r--r--
2016-01-11 00:01
ver_linux
3.89
KB
-rwxr-xr-x
2016-01-11 00:01
xen-hypercalls.sh
351
B
-rw-r--r--
2016-01-11 00:01
xz_wrap.sh
562
B
-rwxr-xr-x
2016-01-11 00:01
Save
Rename
/* Extract X.509 certificate in DER form from PKCS#11 or PEM. * * Copyright © 2014-2015 Red Hat, Inc. All Rights Reserved. * Copyright © 2015 Intel Corporation. * * Authors: David Howells <dhowells@redhat.com> * David Woodhouse <dwmw2@infradead.org> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 * of the licence, or (at your option) any later version. */ #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include <err.h> #include <openssl/bio.h> #include <openssl/pem.h> #include <openssl/err.h> #include <openssl/engine.h> #define PKEY_ID_PKCS7 2 static __attribute__((noreturn)) void format(void) { fprintf(stderr, "Usage: scripts/extract-cert <source> <dest>\n"); exit(2); } static void display_openssl_errors(int l) { const char *file; char buf[120]; int e, line; if (ERR_peek_error() == 0) return; fprintf(stderr, "At main.c:%d:\n", l); while ((e = ERR_get_error_line(&file, &line))) { ERR_error_string(e, buf); fprintf(stderr, "- SSL %s: %s:%d\n", buf, file, line); } } static void drain_openssl_errors(void) { const char *file; int line; if (ERR_peek_error() == 0) return; while (ERR_get_error_line(&file, &line)) {} } #define ERR(cond, fmt, ...) \ do { \ bool __cond = (cond); \ display_openssl_errors(__LINE__); \ if (__cond) { \ err(1, fmt, ## __VA_ARGS__); \ } \ } while(0) static const char *key_pass; static BIO *wb; static char *cert_dst; int kbuild_verbose; static void write_cert(X509 *x509) { char buf[200]; if (!wb) { wb = BIO_new_file(cert_dst, "wb"); ERR(!wb, "%s", cert_dst); } X509_NAME_oneline(X509_get_subject_name(x509), buf, sizeof(buf)); ERR(!i2d_X509_bio(wb, x509), "%s", cert_dst); if (kbuild_verbose) fprintf(stderr, "Extracted cert: %s\n", buf); } int main(int argc, char **argv) { char *cert_src; OpenSSL_add_all_algorithms(); ERR_load_crypto_strings(); ERR_clear_error(); kbuild_verbose = atoi(getenv("KBUILD_VERBOSE")?:"0"); key_pass = getenv("KBUILD_SIGN_PIN"); if (argc != 3) format(); cert_src = argv[1]; cert_dst = argv[2]; if (!cert_src[0]) { /* Invoked with no input; create empty file */ FILE *f = fopen(cert_dst, "wb"); ERR(!f, "%s", cert_dst); fclose(f); exit(0); } else if (!strncmp(cert_src, "pkcs11:", 7)) { ENGINE *e; struct { const char *cert_id; X509 *cert; } parms; parms.cert_id = cert_src; parms.cert = NULL; ENGINE_load_builtin_engines(); drain_openssl_errors(); e = ENGINE_by_id("pkcs11"); ERR(!e, "Load PKCS#11 ENGINE"); if (ENGINE_init(e)) drain_openssl_errors(); else ERR(1, "ENGINE_init"); if (key_pass) ERR(!ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0), "Set PKCS#11 PIN"); ENGINE_ctrl_cmd(e, "LOAD_CERT_CTRL", 0, &parms, NULL, 1); ERR(!parms.cert, "Get X.509 from PKCS#11"); write_cert(parms.cert); } else { BIO *b; X509 *x509; b = BIO_new_file(cert_src, "rb"); ERR(!b, "%s", cert_src); while (1) { x509 = PEM_read_bio_X509(b, NULL, NULL, NULL); if (wb && !x509) { unsigned long err = ERR_peek_last_error(); if (ERR_GET_LIB(err) == ERR_LIB_PEM && ERR_GET_REASON(err) == PEM_R_NO_START_LINE) { ERR_clear_error(); break; } } ERR(!x509, "%s", cert_src); write_cert(x509); } } BIO_free(wb); return 0; }