Search:

Type: Posts; User: n1mda

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    6,654

    Visual Studio 2010 x64 compilation

    Hi, I'm trying to compile a project of mine into x64. I'm on Windows 7 64, but apparently I needed to install the Windows SDK to be able to compile for x64 - I made sure x64 support was enabled...
  2. Replies
    1
    Views
    1,772

    Finding straight draws in poker

    Moderator note: This thread was moved as it was an inapproprioate reply that resurrected Finding a 'straight' in poker.

    I'm reviving this thread as I'm in the process of trying to find straights...
  3. Replies
    5
    Views
    1,520

    I would want it to be ASCII text only, not with...

    I would want it to be ASCII text only, not with the CLRF terminators. I'm not sure about the difference, since the file that works contains newlines as well.

    I've managed to change it by running...
  4. Replies
    5
    Views
    1,520

    Regex does not work, but it should.

    I'm trying to do some regex matching from a file, however, it works sometimes but sometimes not. I have a reason to believe that it has to do with the locale.


    $ file test.txt
    test.txt: ASCII...
  5. Thread: Comparing pixels

    by n1mda
    Replies
    0
    Views
    1,230

    Comparing pixels

    Hi!

    As a small hobby project of mine, i would like to create a small library for image recognition (not photos, but graphics).
    However, I'm not certain on how to do this. I suppose I should...
  6. Thread: API hooking

    by n1mda
    Replies
    2
    Views
    3,776

    Thank you. I've looked through a few examples and...

    Thank you. I've looked through a few examples and my eye has fallen on to IAT Patching, a quite interesting technique.

    I've been writing some code but I have not gotten it to actually work. This...
  7. Thread: API hooking

    by n1mda
    Replies
    2
    Views
    3,776

    API hooking

    Hi. What I'm trying to achieve here is an API hook in a single application. The application is writing several logfiles which is clogging up my harddrive, so I thought I'd reroute WriteFile to a...
  8. Replies
    9
    Views
    11,479

    Thank you for the tip! I've started out and it's...

    Thank you for the tip!
    I've started out and it's actually coming along pretty well, I have so far been able to read the header of the dump file and can parse that pretty easy.

    I'll post some code...
  9. Replies
    9
    Views
    11,479

    Oh don't get me wrong, I don't want someone to...

    Oh don't get me wrong, I don't want someone to write it for me. Definitly not, I'm probably capable of doing it myself. Just wanted to see if someone already wrote a small wrapper that handles...
  10. Replies
    9
    Views
    11,479

    I still need help with this, does anyone have any...

    I still need help with this, does anyone have any information?
  11. Replies
    9
    Views
    11,479

    I've gone over the parts of the sourcecode from...

    I've gone over the parts of the sourcecode from libpcap that I want, but it is still really huge with a lot of structs and other things I don't really need. I simply want to open a pcap dump and...
  12. Replies
    9
    Views
    11,479

    It's supposed to be a packet analyzer on the go,...

    It's supposed to be a packet analyzer on the go, and it is also possible (for jailbroken devices) to sniff and collect packets.

    The thing is that since this app should enter the appstore, I can...
  13. Replies
    9
    Views
    11,479

    Parsing pcap without libpcap

    Hello fellows.

    I'm writing an application for iPhone (using objective-c) but as I want it to parse a pcap file (packet dump) I thought of writing that part in strict C.

    The thing is, I'm not...
  14. Thread: Using resources

    by n1mda
    Replies
    4
    Views
    1,152

    Btw. This is how I solved it: resources.rc - ...

    Btw. This is how I solved it:

    resources.rc -


    1 BIN DISCARDABLE "path-to-.dll"


    extract.c -
  15. Thread: Using resources

    by n1mda
    Replies
    4
    Views
    1,152

    I didn't mention error handling etc - but it will...

    I didn't mention error handling etc - but it will offcorse be included.

    I have made my choice of handling this problem, and I want to extract them from resources in my executable. With hours of...
  16. Thread: Using resources

    by n1mda
    Replies
    4
    Views
    1,152

    Using resources

    Hi, I had no idea if I should post it in Windows Programming or General C-programming, but since win32 is the platform I'm working on I'm posting here...
    Mod may move if it's in the wrong section.
    ...
  17. Thread: DLL Injection

    by n1mda
    Replies
    25
    Views
    7,519

    So after FreeLibrary I added a second...

    So after FreeLibrary I added a second WaitForSingleObject() - it returns WAIT_OBJECT_0

    but next comes VirtualFreeEx() wich fails:


    if(!VirtualFreeEx(hOpenProcess, lpRemoteMemory, 0,...
  18. Thread: DLL Injection

    by n1mda
    Replies
    25
    Views
    7,519

    This thread is getting way out of hand with long...

    This thread is getting way out of hand with long code-snippets...

    So here is a pastebin:
    http://pastebin.ca/902337

    I've been messing around a bit with using GetExitCodeThread() and the second...
  19. Thread: DLL Injection

    by n1mda
    Replies
    25
    Views
    7,519

    I changed my code yes, and it is in that order I...

    I changed my code yes, and it is in that order I wrote...
  20. Thread: DLL Injection

    by n1mda
    Replies
    25
    Views
    7,519

    Allright, sorry for inconvenience... So heres...

    Allright, sorry for inconvenience...

    So heres exactly what my code does:

    OpenProcess(PROCESS_ALL_ACCESS, FALSE, IDProcess);
    where IDProcess is my own variable. It has the return vale of...
  21. Thread: DLL Injection

    by n1mda
    Replies
    25
    Views
    7,519

    Ahh you genius! Thanks a lot! I seem to nearly...

    Ahh you genius! Thanks a lot! I seem to nearly have gotten all the code together, I get no error running the code - but the host process seem to crash anyway...



    // No luxury poop, have to...
  22. Thread: DLL Injection

    by n1mda
    Replies
    25
    Views
    7,519

    Excuse me for my minor knowledge in C, but to...

    Excuse me for my minor knowledge in C, but to read the return value from WaitForSingleObject I would do like this:



    int soReturn;
    soReturn = WaitForSingleObject(hRemoteThread, INFINITE);...
  23. Thread: DLL Injection

    by n1mda
    Replies
    25
    Views
    7,519

    Thank you for your answers! I've been playing...

    Thank you for your answers!

    I've been playing around with this for a while now, but I can not seem to solve it...

    My steps through the code goes like this:

    1. OpenProcess() - no errors
    2....
  24. Thread: DLL Injection

    by n1mda
    Replies
    25
    Views
    7,519

    Thank you for your answer! But is this caused...

    Thank you for your answer!

    But is this caused by the DLL or the injection-code itself?

    I though since I have WaitForSingleObject() this would not be an error?
  25. Thread: DLL Injection

    by n1mda
    Replies
    25
    Views
    7,519

    DLL Injection

    Hi people!

    First of all, I'd like to say thank you for a wonderful site and forum! It has helped me a lot in my progress in C. Big kudos to you all!

    Now on to my question, I'm currently writing...
Results 1 to 25 of 25