Giter Site home page Giter Site logo

thomashabets / injcode Goto Github PK

View Code? Open in Web Editor NEW
114.0 114.0 16.0 54 KB

Inject code into a running process

Home Page: http://www.habets.pp.se/synscan/programs.php

License: GNU General Public License v2.0

C 7.08% C++ 73.05% Makefile 1.73% Assembly 18.14%

injcode's People

Contributors

chaoflow avatar thomashabets avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

injcode's Issues

compilation with g++ 4.4 on 64bit

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 toshellcodeRettyChild'
/home/cfl/dev/injcode/retty.cc:293: undefined reference to shellcodeRettyEnd' /home/cfl/dev/injcode/retty.cc:289: undefined reference toshellcodeRetty'
/home/cfl/dev/injcode/retty.cc:293: undefined reference to shellcodeRetty' /home/cfl/dev/injcode/retty.cc:297: undefined reference toshellcodeRetty'
/home/cfl/dev/injcode/retty.cc:289: undefined reference to shellcodeRettyChild' /home/cfl/dev/injcode/retty.cc:293: undefined reference toshellcodeRettyEnd'
/home/cfl/dev/injcode/retty.cc:289: undefined reference to shellcodeRetty' /home/cfl/dev/injcode/retty.cc:293: undefined reference toshellcodeRetty'
/home/cfl/dev/injcode/retty.cc:297: undefined reference to shellcodeRetty' testmodule.o: In functionTestModule':
/home/cfl/dev/injcode/testmodule.cc:25: undefined reference to shellcodeTestEnd' /home/cfl/dev/injcode/testmodule.cc:25: undefined reference toshellcodeTest'
/home/cfl/dev/injcode/testmodule.cc:25: undefined reference to shellcodeTest' /home/cfl/dev/injcode/testmodule.cc:25: undefined reference toshellcodeTestEnd'
/home/cfl/dev/injcode/testmodule.cc:25: undefined reference to shellcodeTest' /home/cfl/dev/injcode/testmodule.cc:25: undefined reference toshellcodeTest'
closemodule.o: In function CloseModule': /home/cfl/dev/injcode/closemodule.cc:43: undefined reference toshellcodeCloseEnd'
/home/cfl/dev/injcode/closemodule.cc:43: undefined reference to shellcodeClose' /home/cfl/dev/injcode/closemodule.cc:43: undefined reference toshellcodeClose'
/home/cfl/dev/injcode/closemodule.cc:43: undefined reference to shellcodeCloseEnd' /home/cfl/dev/injcode/closemodule.cc:43: undefined reference toshellcodeClose'
/home/cfl/dev/injcode/closemodule.cc:43: undefined reference to shellcodeClose' dup2module.o: In functionDup2Module':
/home/cfl/dev/injcode/dup2module.cc:103: undefined reference to shellcodeDup2End' /home/cfl/dev/injcode/dup2module.cc:103: undefined reference toshellcodeDup2'
/home/cfl/dev/injcode/dup2module.cc:103: undefined reference to shellcodeDup2' /home/cfl/dev/injcode/dup2module.cc:103: undefined reference toshellcodeDup2End'
/home/cfl/dev/injcode/dup2module.cc:103: undefined reference to shellcodeDup2' /home/cfl/dev/injcode/dup2module.cc:103: undefined reference toshellcodeDup2'
collect2: ld returned 1 exit status
make: *** [injcode] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.