Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files123
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- basic/
- coccinelle/
- dtc/
- gcc-plugins/
- gdb/
- genksyms/
- kconfig/
- ksymoops/
- mod/
- package/
- selinux/
- tracing/
- .gitignore
- Kbuild.include
- Kconfig.include
- Lindent
- Makefile
- Makefile.asm-generic
- Makefile.build
- Makefile.clean
- Makefile.dtbinst
- Makefile.extrawarn
- Makefile.gcc-plugins
- Makefile.headersinst
- Makefile.host
- Makefile.kasan
- Makefile.kcov
- Makefile.lib
- Makefile.modbuiltin
- Makefile.modinst
- Makefile.modpost
- Makefile.modsign
- Makefile.ubsan
- adjust_autoksyms.sh
- asn1_compiler.c
- bin2c.c
- bloat-o-meter
- bootgraph.pl
- bpf_helpers_doc.py
- cc-can-link.sh
- check_00index.sh
- check_extable.sh
- checkincludes.pl
- checkkconfigsymbols.py
- checkpatch.pl
- checkstack.pl
- checksyscalls.sh
- checkversion.pl
- clang-version.sh
- cleanfile
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
scripts/bin2c.c
C · 743 bytes/*
* Unloved program to convert a binary on stdin to a C include on stdout
*
* Jan 1999 Matt Mackall <[email protected]>
*
* This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference.
*/
#include <stdio.h>
int main(int argc, char *argv[])
{
int ch, total = 0;
if (argc > 1)
printf("const char %s[] %s=\n",
argv[1], argc > 2 ? argv[2] : "");
do {
printf("\t\"");
while ((ch = getchar()) != EOF) {
total++;
printf("\\x%02x", ch);
if (total % 16 == 0)
break;
}
printf("\"\n");
} while (ch != EOF);
if (argc > 1)
printf("\t;\n\n#include <linux/types.h>\n\nconst size_t %s_size = %d;\n",
argv[1], total);
return 0;
}