Results 1 to 10 of 10

Thread: Help doing inline keygenning....

  1. #1
    EJ12N
    Guest

    Help doing inline keygenning....

    Hi im doing a keygenME and the algo of it is too long but i mean LONG...(maybe 200+ lines) uhmm anyways i know how to make it so it displays the correct serial on the error msgbox but i what i did is add a new editbox (txtbox) with resource editor and i now what i want is how to make that edit box display the correct serial instead of doing it in the message box

    well that's all

    THank you!

    Regards,
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  2. #2
    Red wine, not vodka! ZaiRoN's Avatar
    Join Date
    Oct 2001
    Location
    Italy
    Posts
    922
    Blog Entries
    17
    Hi EJ12N,
    there are some functions you can use in order to solve your problem: SetDlgItemText, SetWindowText, SendMessage(wm_settext). Choose one of these and use it...

  3. #3
    EJ12N
    Guest
    uhmm i know that... but the thing is how to do it... ? i dont have the source for the program so i gotta inline patch it to do that but how ?
    Thank you
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  4. #4
    Red wine, not vodka! ZaiRoN's Avatar
    Join Date
    Oct 2001
    Location
    Italy
    Posts
    922
    Blog Entries
    17
    i dont have the source for the program
    Sorry but, what does it mean? Why do you need the source of the program !?!

    zai

  5. #5

    As Above

    Quote Originally Posted by EJ12N
    uhmm i know that... but the thing is how to do it... ? i dont have the source for the program so i gotta inline patch it to do that but how ?
    Thank you
    You may try to search on google for <Code Caves>, <adding sections PE> and seach the old fravia mirror for adding fucntionality.

    A good read would be to go to google and search for <RazziaPad> or <Razzia> or <How to add functionality to Notepad>

    Have Phun
    Blame Microsoft, get l337 !!

  6. #6
    EJ12N
    Guest
    Sorry but, what does it mean? Why do you need the source of the program !?!

    zai
    i said that cuz maybe u miss understood me
    Well ima go search for those tuts Aimless said... but if anyone could describe it here for me how to do it would be great

    Thank you!
    Last edited by EJ12N; May 6th, 2004 at 09:02.
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  7. #7
    Will
    Guest
    i know how to make it so it displays the correct serial on the error msgbox

    You know how to add code for that but not how to insert a single api call like SetWindowText?
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  8. #8
    EJ12N
    Guest
    Yes i dont know about how to setwindowtext on the new edit box i did to make it display on messagebox is easy you just change code... but i never done this SetWindowText so can anyone help
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  9. #9
    Will
    Guest
    Well showing the serial in a msgbox still involves a call to wsprintf, adding a string ("%d,0" or whatever), adding a buffer (25 dup(0) or whatever), and inserting the code.

    That's about equally as complicated as adding a call to GetDlgItem/SetWindowText, which would consist of something like this:

    (assuming that they're already imported, although importing them isn't much of a problem either )
    Code:
    ;either overwrite unimportant code or insert a jump to a cave, then add this
    push nIDDlgItem   ;the dlg id that you gave the edit box
    push hDlg            ;the hWnd of the dlg -- it'll most likely be in 1 of 2 places
                             ;ebp + xx or in a buffer
    call GetDlgItem     ;hopefully it's imported already
    push lpString        ;since you've already got the serial in a buffer that you
                             ;used with your MessageBox/Ex call  ;) then just use that
    push eax             ;hWnd is in return of GetDlgItem
    call SetWindowText   ;hopefully it's imported already, if not try SetDlgItemText
    That's more than enough info for you. You're selling yourself short though, by thinking that you can't do this already. You've already added the MessageBox code, so this isn't much more difficult if at all.


    cheers,
    will
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  10. #10
    EJ12N
    Guest
    NVM i got it Thanks anyways


    Quote Originally Posted by Will
    Well showing the serial in a msgbox still involves a call to wsprintf, adding a string ("%d,0" or whatever), adding a buffer (25 dup(0) or whatever), and inserting the code.

    That's about equally as complicated as adding a call to GetDlgItem/SetWindowText, which would consist of something like this:

    (assuming that they're already imported, although importing them isn't much of a problem either )
    Code:
    ;either overwrite unimportant code or insert a jump to a cave, then add this
    push nIDDlgItem   ;the dlg id that you gave the edit box
    push hDlg            ;the hWnd of the dlg -- it'll most likely be in 1 of 2 places
                             ;ebp + xx or in a buffer
    call GetDlgItem     ;hopefully it's imported already
    push lpString        ;since you've already got the serial in a buffer that you
                             ;used with your MessageBox/Ex call  ;) then just use that
    push eax             ;hWnd is in return of GetDlgItem
    call SetWindowText   ;hopefully it's imported already, if not try SetDlgItemText
    That's more than enough info for you. You're selling yourself short though, by thinking that you can't do this already. You've already added the MessageBox code, so this isn't much more difficult if at all.


    cheers,
    will
    I promise that I have read the FAQ and tried to use the Search to answer my question.

Similar Threads

  1. asprotect 2.0 inline patching with asprapi
    By Xybyre in forum Malware Analysis and Unpacking Forum
    Replies: 9
    Last Post: May 7th, 2005, 03:13
  2. aspack inline patching
    By salsa in forum Malware Analysis and Unpacking Forum
    Replies: 14
    Last Post: July 23rd, 2004, 05:13
  3. inline patching asprotect
    By Shub-nigurrath in forum Malware Analysis and Unpacking Forum
    Replies: 5
    Last Post: July 21st, 2004, 18:16
  4. inline patching TElock 0.85f
    By -=elgura=- in forum Malware Analysis and Unpacking Forum
    Replies: 0
    Last Post: December 5th, 2001, 16:52
  5. RSA keygenning
    By DinDon in forum Advanced Reversing and Programming
    Replies: 10
    Last Post: December 18th, 2000, 05:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •