thomashabets / injcode Goto Github PK
View Code? Open in Web Editor NEWInject code into a running process
Home Page: http://www.habets.pp.se/synscan/programs.php
License: GNU General Public License v2.0
Inject code into a running process
Home Page: http://www.habets.pp.se/synscan/programs.php
License: GNU General Public License v2.0
Compilation fails for 64bit with g++ 4.4.3. The g++ 4.4.3 part, I fixed with 3 includes in my "fork". However, as far as I can tell the 64bit make bigger trouble (see below). Any chance you could fix that? Any pointers what needs be done?
% make
g++ -g -W -Wall -pipe -O2 -c -o injcode.o injcode.cc
g++ -g -W -Wall -pipe -O2 -c -o inject.o inject.cc
g++ -g -W -Wall -pipe -O2 -c -o retty.o retty.cc
retty.cc:31: warning: unused parameter ‘x’
retty.cc: In constructor ‘Retty::Retty(Inject&)’:
retty.cc:252: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
retty.cc:287: warning: dereferencing type-punned pointer will break strict-aliasing rules
retty.cc:295: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘size_t’
g++ -g -W -Wall -pipe -O2 -c -o testmodule.o testmodule.cc
g++ -g -W -Wall -pipe -O2 -c -o closemodule.o closemodule.cc
closemodule.cc: In constructor ‘CloseModule::CloseModule(Inject&)’:
closemodule.cc:38: warning: dereferencing type-punned pointer will break strict-aliasing rules
g++ -g -W -Wall -pipe -O2 -c -o dup2module.o dup2module.cc
dup2module.cc: In constructor ‘Dup2Module::Dup2Module(Inject&)’:
dup2module.cc:68: warning: dereferencing type-punned pointer will break strict-aliasing rules
cc -c -o shellcode-test-linux-ia32.o shellcode-test-linux-ia32.S
cc -c -o shellcode-close-linux-ia32.o shellcode-close-linux-ia32.S
cc -c -o shellcode-dup2-linux-ia32.o shellcode-dup2-linux-ia32.S
cc -c -o shellcode-retty-linux-ia32.o shellcode-retty-linux-ia32.S
g++ -g -W -Wall -pipe -O2 -o injcode injcode.o inject.o retty.o testmodule.o closemodule.o dup2module.o shellcode-test-linux-ia32.o shellcode-close-linux-ia32.o shellcode-dup2-linux-ia32.o shellcode-retty-linux-ia32.o -lutil
retty.o: In function Retty': /home/cfl/dev/injcode/retty.cc:289: undefined reference to
shellcodeRettyChild'
/home/cfl/dev/injcode/retty.cc:293: undefined reference to shellcodeRettyEnd' /home/cfl/dev/injcode/retty.cc:289: undefined reference to
shellcodeRetty'
/home/cfl/dev/injcode/retty.cc:293: undefined reference to shellcodeRetty' /home/cfl/dev/injcode/retty.cc:297: undefined reference to
shellcodeRetty'
/home/cfl/dev/injcode/retty.cc:289: undefined reference to shellcodeRettyChild' /home/cfl/dev/injcode/retty.cc:293: undefined reference to
shellcodeRettyEnd'
/home/cfl/dev/injcode/retty.cc:289: undefined reference to shellcodeRetty' /home/cfl/dev/injcode/retty.cc:293: undefined reference to
shellcodeRetty'
/home/cfl/dev/injcode/retty.cc:297: undefined reference to shellcodeRetty' testmodule.o: In function
TestModule':
/home/cfl/dev/injcode/testmodule.cc:25: undefined reference to shellcodeTestEnd' /home/cfl/dev/injcode/testmodule.cc:25: undefined reference to
shellcodeTest'
/home/cfl/dev/injcode/testmodule.cc:25: undefined reference to shellcodeTest' /home/cfl/dev/injcode/testmodule.cc:25: undefined reference to
shellcodeTestEnd'
/home/cfl/dev/injcode/testmodule.cc:25: undefined reference to shellcodeTest' /home/cfl/dev/injcode/testmodule.cc:25: undefined reference to
shellcodeTest'
closemodule.o: In function CloseModule': /home/cfl/dev/injcode/closemodule.cc:43: undefined reference to
shellcodeCloseEnd'
/home/cfl/dev/injcode/closemodule.cc:43: undefined reference to shellcodeClose' /home/cfl/dev/injcode/closemodule.cc:43: undefined reference to
shellcodeClose'
/home/cfl/dev/injcode/closemodule.cc:43: undefined reference to shellcodeCloseEnd' /home/cfl/dev/injcode/closemodule.cc:43: undefined reference to
shellcodeClose'
/home/cfl/dev/injcode/closemodule.cc:43: undefined reference to shellcodeClose' dup2module.o: In function
Dup2Module':
/home/cfl/dev/injcode/dup2module.cc:103: undefined reference to shellcodeDup2End' /home/cfl/dev/injcode/dup2module.cc:103: undefined reference to
shellcodeDup2'
/home/cfl/dev/injcode/dup2module.cc:103: undefined reference to shellcodeDup2' /home/cfl/dev/injcode/dup2module.cc:103: undefined reference to
shellcodeDup2End'
/home/cfl/dev/injcode/dup2module.cc:103: undefined reference to shellcodeDup2' /home/cfl/dev/injcode/dup2module.cc:103: undefined reference to
shellcodeDup2'
collect2: ld returned 1 exit status
make: *** [injcode] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.