-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template with API & Source file #1
base: main
Are you sure you want to change the base?
Conversation
PR auto compile result: LinuxArch
Build Resultcc -c -o test1.o test1.c
gcc test1.o -shared -o libtest1.linux
----------------- nm ---------------------
nm libtest1.linux
0000000000200e20 d _DYNAMIC
0000000000201000 d _GLOBAL_OFFSET_TABLE_
w _ITM_deregisterTMCloneTable
w _ITM_registerTMCloneTable
00000000000006f0 r __FRAME_END__
0000000000000650 r __GNU_EH_FRAME_HDR
0000000000201028 d __TMC_END__
0000000000201028 B __bss_start
w __cxa_finalize@@GLIBC_2.2.5
00000000000005c0 t __do_global_dtors_aux
0000000000200e18 t __do_global_dtors_aux_fini_array_entry
0000000000201020 d __dso_handle
0000000000200e10 t __frame_dummy_init_array_entry
w __gmon_start__
0000000000201028 D _edata
0000000000201030 B _end
0000000000000628 T _fini
00000000000004e8 T _init
0000000000201028 b completed.7698
0000000000000530 t deregister_tm_clones
0000000000000600 t frame_dummy
000000000000060a T func1
U puts@@GLIBC_2.2.5
0000000000000570 t register_tm_clones
------------------------------------------
---------------- GLIBC -------------------
strings libtest1.linux | grep GLIBC
GLIBC_2.2.5
puts@@GLIBC_2.2.5
__cxa_finalize@@GLIBC_2.2.5
------------------------------------------
cp libtest1.linux ../
rm libtest1.linux *.o
cc -c -o exp.o exp.c
gcc exp.o -o exp.linux
----------------- nm ---------------------
nm exp.linux
0000000000200dc8 d _DYNAMIC
0000000000200fb8 d _GLOBAL_OFFSET_TABLE_
0000000000000700 R _IO_stdin_used
w _ITM_deregisterTMCloneTable
w _ITM_registerTMCloneTable
000000000000086c r __FRAME_END__
000000000000072c r __GNU_EH_FRAME_HDR
0000000000201010 D __TMC_END__
0000000000201010 B __bss_start
w __cxa_finalize@@GLIBC_2.2.5
0000000000201000 D __data_start
0000000000000600 t __do_global_dtors_aux
0000000000200dc0 t __do_global_dtors_aux_fini_array_entry
0000000000201008 D __dso_handle
0000000000200db8 t __frame_dummy_init_array_entry
w __gmon_start__
0000000000200dc0 t __init_array_end
0000000000200db8 t __init_array_start
00000000000006f0 T __libc_csu_fini
0000000000000680 T __libc_csu_init
U __libc_start_main@@GLIBC_2.2.5
0000000000201010 D _edata
0000000000201018 B _end
00000000000006f4 T _fini
00000000000004f0 T _init
0000000000000540 T _start
0000000000201010 b completed.7698
0000000000201000 W data_start
0000000000000570 t deregister_tm_clones
0000000000000640 t frame_dummy
000000000000064a T main
U printf@@GLIBC_2.2.5
00000000000005b0 t register_tm_clones
------------------------------------------
---------------- GLIBC -------------------
strings exp.linux | grep GLIBC
GLIBC_2.2.5
printf@@GLIBC_2.2.5
__libc_start_main@@GLIBC_2.2.5
__cxa_finalize@@GLIBC_2.2.5
------------------------------------------
cp exp.linux ../
rm exp.linux *.o
/tmp/third-party/
/tmp/third-party/utils
/tmp/third-party/utils/library_demo
/tmp/third-party/utils/library_demo/load.cna
/tmp/third-party/utils/library_demo/readme.md
/tmp/third-party/utils/library_demo/src
/tmp/third-party/utils/library_demo/src/test1.c
/tmp/third-party/utils/library_demo/src/makefile
/tmp/third-party/utils/library_demo/libtest1.linux
/tmp/third-party/readme.md
/tmp/third-party/lpe
/tmp/third-party/lpe/CVE-2021-4034
/tmp/third-party/lpe/CVE-2021-4034/load.cna
/tmp/third-party/lpe/CVE-2021-4034/exp.linux
/tmp/third-party/lpe/CVE-2021-4034/readme.md
/tmp/third-party/lpe/CVE-2021-4034/src
/tmp/third-party/lpe/CVE-2021-4034/src/makefile
/tmp/third-party/lpe/CVE-2021-4034/src/exp.c
/tmp/third-party/api_demo
/tmp/third-party/api_demo/load.cna MacOSArch
Build Resultcc -c -o test1.o test1.c
gcc test1.o -shared -o libtest1.mac
----------------- nm ---------------------
nm libtest1.mac
0000000000008008 d __dyld_private
0000000000003f50 T _func1
U _printf
U dyld_stub_binder
------------------------------------------
---------------- GLIBC -------------------
------------------------------------------
cp libtest1.mac ../
rm libtest1.mac *.o
cc -c -o exp.o exp.c
gcc exp.o -o exp.mac
----------------- nm ---------------------
nm exp.mac
0000000100008008 d __dyld_private
0000000100000000 T __mh_execute_header
0000000100003f40 T _main
U _printf
U dyld_stub_binder
------------------------------------------
---------------- GLIBC -------------------
------------------------------------------
cp exp.mac ../
rm exp.mac *.o
/tmp/third-party/
/tmp/third-party//utils
/tmp/third-party//utils/library_demo
/tmp/third-party//utils/library_demo/readme.md
/tmp/third-party//utils/library_demo/libtest1.mac
/tmp/third-party//utils/library_demo/load.cna
/tmp/third-party//utils/library_demo/src
/tmp/third-party//utils/library_demo/src/makefile
/tmp/third-party//utils/library_demo/src/test1.c
/tmp/third-party//lpe
/tmp/third-party//lpe/CVE-2021-4034
/tmp/third-party//lpe/CVE-2021-4034/exp.mac
/tmp/third-party//lpe/CVE-2021-4034/readme.md
/tmp/third-party//lpe/CVE-2021-4034/load.cna
/tmp/third-party//lpe/CVE-2021-4034/src
/tmp/third-party//lpe/CVE-2021-4034/src/makefile
/tmp/third-party//lpe/CVE-2021-4034/src/exp.c
/tmp/third-party//readme.md
/tmp/third-party//api_demo
/tmp/third-party//api_demo/load.cna |
CrossC2 API usage example and plugin structure including source code and PR check example