Giter VIP home page Giter VIP logo

Comments (13)

taviso avatar taviso commented on May 28, 2024

Hmm, It should be in /usr/include/asm/unistd_32.h which gets included from asm/unistd.h.

I see your script does ln -s /usr/include/asm-generic /usr/include/asm, instead of using the arch ones.

If you really need to do that for some reason, you can probably add -D__NR_modify_ldt=123 to the Makefile CFLAGS in the peloader directory...

from loadlibrary.

blacktop avatar blacktop commented on May 28, 2024

If I don't include the ln -s I get the following error:

cc -O3 -march=native -ggdb3 -m32 -std=gnu99 -fshort-wchar -Wno-multichar -Iinclude -DNDEBUG -D_GNU_SOURCE -I. -Iintercept -Ipeloader  -c -o mpclient.o mpclient.c
mpclient.c:31:24: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'mpclient.o' failed
make: *** [mpclient.o] Error 1

from loadlibrary.

taviso avatar taviso commented on May 28, 2024

Hmm, does apt-get install linux-libc-dev:i386 provide it? (I'm not on Ubuntu right now)

from loadlibrary.

taviso avatar taviso commented on May 28, 2024

I tested on Ubuntu, I think apt-get install libc6-dev:i386 gcc-multilib is enough. I added that to the README.

from loadlibrary.

thebetterjort avatar thebetterjort commented on May 28, 2024

@blacktop You adding to this to your malice?

from loadlibrary.

blacktop avatar blacktop commented on May 28, 2024

Those packages are not found on ubuntu.

I made a small pull request with the packages that I did find that I think correlate with what you need?

from loadlibrary.

blacktop avatar blacktop commented on May 28, 2024

@thebetterjort yes I want to if it works.

I guess I probably need to use the GPL license on that plugin then?

@taviso what is your understanding of GPL with respects to me running your tool in a docker container, but not changing it in any way?

from loadlibrary.

blacktop avatar blacktop commented on May 28, 2024

I appended your license to mine, please let me know if that is satisfactory?

and again @taviso

you are THE MAN!!!

from loadlibrary.

taviso avatar taviso commented on May 28, 2024

Thanks, I guess we must be on different Ubuntu versions and the packages were renamed! I'll figure out which versions need which packages.

It's fine to run it and make any changes you like, the GPL only matters if you want to share your changes with other people, then the changes have to be GPL as well - that's basically it!

from loadlibrary.

jtlz2 avatar jtlz2 commented on May 28, 2024

@taviso @blacktop Agree! I'm just doing a straight build of this on Ubuntu and still getting the original error - but now I can't find the relevant package:

sudo apt-get update && apt-get install libc6-dev:i386 gcc-multilib

E: Unable to locate package libc6-dev:i386

from loadlibrary.

jtlz2 avatar jtlz2 commented on May 28, 2024

Sorry - just apt-get install gcc-multilib beat this one

from loadlibrary.

jtlz2 avatar jtlz2 commented on May 28, 2024

Apologies for the trickle feed - now mpclient won't build:

/usr/include/bits/stdio.h:117: undefined reference to `__getdelim'
peloader/libpeloader.a(util.o): In function `IsDebuggerPresent':
/home/ubuntu/src/loadlibrary/peloader/util.c:65: undefined reference to `__stack_chk_fail'
peloader/libpeloader.a(extra.o): In function `process_extra_exports':
/home/ubuntu/src/loadlibrary/peloader/extra.c:52: undefined reference to `hcreate_r'
/home/ubuntu/src/loadlibrary/peloader/extra.c:59: undefined reference to `hsearch_r'
/home/ubuntu/src/loadlibrary/peloader/extra.c:71: undefined reference to `__stack_chk_fail'
peloader/libpeloader.a(extra.o): In function `cleanup_extra_exports':
/home/ubuntu/src/loadlibrary/peloader/extra.c:37: undefined reference to `hdestroy_r'
collect2: error: ld returned 1 exit status
Makefile:27: recipe for target 'mpclient' failed
make: *** [mpclient] Error 1

Any ideas? Thanks!

from loadlibrary.

jtlz2 avatar jtlz2 commented on May 28, 2024

Fixed via @blacktop 's Docker image - thanks + sorry!

from loadlibrary.

Related Issues (20)

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.