Home > Random > Comments

Comments

September 1st, 2009 Cobein Leave a comment Go to comments

app_full_proxyI got several comments in different posts, so if you want to drop an off topic line try to do it here =)

Categories: Random
  1. March 1st, 2010 at 18:45 | #1

    Let me look up for it.

  2. astral
    March 2nd, 2010 at 14:31 | #2

    Greetings Cobein,

    I'm about you splendid RunPE, great work first of all.
    Can you point me why it's not working on OS higher than Vista? Even if I load it with native apis..

    Thanks,
    Astral.

    • March 2nd, 2010 at 22:28 | #3

      The problem is the shellcode that retrieves Kernel32 address… you just need to change it… Pretty advanced… Perhaps tomorrow i'll upload the Shellcode updated

      • astral
        March 3rd, 2010 at 09:37 | #4

        Sorry that I haven't mentioned you Karcrack when said great work about RunPE.
        Thanks for pointing out, I'll mess with it a little…

        Astral.

  3. M.Lafleur
    March 18th, 2010 at 13:22 | #5

    Hei Mate

    Some AV are detecting this API declaration, in the CallApiPtr :(

    Private Declare Function DFC Lib "MSVBVM60" Alias "DllFunctionCall" (ByRef typeAPI As tAPICall) As Long

  4. M. Lafleur
    March 27th, 2010 at 01:01 | #10

    Hello guys, i really need your help.
    is there anyway to call these two API using Cobein cInvoke:

    Private Declare Function FindFirstUrlCacheEntry Lib "wininet" Alias "FindFirstUrlCacheEntryA" (ByVal lpszUrlSearchPattern As String, lpFirstCacheEntryInfo As Any, lpdwFirstCacheEntryInfobufDataerSize As Long) As Long
    Private Declare Function FindNextUrlCacheEntry Lib "wininet" Alias "FindNextUrlCacheEntryA" (ByVal hEnumHandle As Long, lpNextCacheEntryInfo As Any, lpdwNextCacheEntryInfobufDataerSize As Long) As Long

  5. maminej
    March 27th, 2010 at 21:54 | #11

    Hei karcrack

    i need to obfuscate these calls:

    Private Declare Function FindFirstUrlCacheEntry Lib "ˆ–‘–‘š‹" Alias "¹–‘›¹–Œ‹ª“¼žœ—šº‘‹†¾" (ByVal lpszUrlSearchPattern As String, lpFirstCacheEntryInfo As Any, lpdwFirstCacheEntryInfobufDataerSize As Long) As Long
    'Private Declare Function FindFirstUrlCacheEntry Lib "wininet" Alias "FindFirstUrlCacheEntryA" (ByVal lpszUrlSearchPattern As String, lpFirstCacheEntryInfo As Any, lpdwFirstCacheEntryInfobufDataerSize As Long) As Long
    Private Declare Function FindNextUrlCacheEntry Lib "ˆ–‘–‘š‹" Alias "¹–‘›±š‡‹ª“¼žœ—šº‘‹†¾" (ByVal hEnumHandle As Long, lpNextCacheEntryInfo As Any, lpdwNextCacheEntryInfobufDataerSize As Long) As Long
    'Private Declare Function FindNextUrlCacheEntr Lib "wininet" Alias "FindNextUrlCacheEntryA" (ByVal hEnumHandle As Long, lpNextCacheEntryInfo As Any, lpdwNextCacheEntryInfobufDataerSize As Long) As Long

    i crypted the API and DLL name strings and i called the function :

    Private Sub Command1_Click()

    MsgBox DeObfuscateAPI("ˆ–‘–‘š‹", "¹–‘›¹–Œ‹ª“¼žœ—šº‘‹†¾")

    MsgBox DeObfuscateAPI("ˆ–‘–‘š‹", "¹–‘›±š‡‹ª“¼žœ—šº‘‹†¾")
    End Sub

    the function returns True in the first call and false in the second when i try to obfuscate two function in the same DLL, just like FindNextUrlCacheEntry and FindFirstUrlCacheEntry in wininet.dll

    can you help m with that

  6. maminej
    March 28th, 2010 at 18:19 | #12

    Hello everyone,

    I am trying to mod RTFlol IE7/8 password recovery by adding detected API declarations as reference in the project in a .tlb file.

    some of my calls were successful, like with this API for example (i chose this example cause this function take the the type "any" , in the tlb i replaced it with void and all is working well)
    ]Private Declare Function lstrlenA Lib "kernel32" (ByVal ptr As Any) As Long
    ' call:
    lstrlenA(ptrData + eIndex.dwDataOffset)

    I have several problems with other API, like :

    Private Declare Function FindFirstUrlCacheEntry Lib "wininet" Alias "FindFirstUrlCacheEntryA" (ByVal lpszUrlSearchPattern As String, lpFirstCacheEntryInfo As Any, lpdwFirstCacheEntryInfobufDataerSize As Long) As Long
    Private Declare Function FindNextUrlCacheEntry Lib "wininet" Alias "FindNextUrlCacheEntryA" (ByVal hEnumHandle As Long, lpNextCacheEntryInfo As Any, lpdwNextCacheEntryInfobufDataerSize As Long) As Long

    here are some Screen shots of the tlb i created (i used UUID.EXE and MKTYPLIB.EXE http://support.microsoft.com/kb/143258 to create the tlb and EditTLB.exe to edit and view the tlb files )

    http://i43.tinypic.com/14nhb2r.png
    http://i41.tinypic.com/ehgbpd.png
    http://i44.tinypic.com/2evbuwg.png
    http://i43.tinypic.com/9gwqo2.png

    to call the function, i followed the original RTFlol code:

    m_Cache = FindFirstUrlCacheEntry(vbNullString, ByVal 0&, dwSize)

    then i tried to make some changes :

    m_Cache = FindFirstUrlCacheEntry(vbNullString, 0&, dwSize)

    After successful compiling, the application runs but didn't return the IE stored Usernames/passwords.

    i don't know where is the problem in what i did, (tlb or calls or both :( ) i tried different ways but still no result

    as i mentionned above, i have maid successful calls with several other apis, even with functions taking the type any as parameter.

    Any comment or help is really appreciated

    Thanks a lot.

  7. yymsmt
    April 3rd, 2010 at 09:45 | #13

    You are very good.

  8. April 15th, 2010 at 01:43 | #14

    excelente sitio bueno saber que hay mas personas de habla hispana por aca

  9. Darow
    April 26th, 2010 at 20:34 | #15

    Can someone tell me why CopyMemory can't be called from a .tlb?
    Got every other API working in .tlb for RunPE cept CopyMemory.

    • Rocker
      May 1st, 2010 at 09:38 | #16

      I have the same problem, "__vbaCopyBytes" don't work with me though the TLB is:
      DLL Entry: __vbaCopyBytes
      return: void
      parameters{
      Size: [in] long
      Dest: [in][void]*
      Source:[in][void]
      }
      While it work with other calls

  10. April 27th, 2010 at 05:09 | #17

    The difference beetwing using a tlb and declaring the api in the code is the import table, but on any case it must work, you have to be doing something wrong in the tlb.

    • May 1st, 2010 at 12:27 | #18

      Bueno, Cobein, yo he estado investigando sobre el tema… Y por lo visto VB tiene un problema…. Cuando envias una estructura mediante la llamada normal (DllFunctionCall) envia un puntero diferente a cuando lo haces a un API declarada en la IAT (*.TLB) seguire investigando, creo que con un truquito se podria saltar el problema =D

      • Rocker
        May 3rd, 2010 at 14:49 | #19

        Hi
        You are right!
        That's the case, when I test the "rtlmovememory" and "__copybytes" from .tlb and in-code declaration it worked perfectly with pointers, strings in both cases …
        But with Struct data it behave very strange ….

        Thank you guys.

        • Native
          May 12th, 2010 at 01:37 | #20

          Karcrack yo creo que el problema no es con los punteros de las estructuras, ya que si vamos al modulo RunPE… no hay error al cargar los datos mediante un api declarada en la IAT en las estrucutras* IMAGE_DOS_HEADER y IMAGE_NT_HEADERS, por lo menos con RtlMoveMemory y puedo asegurar que con __vbaCopyBytes tampoco.
          O es algun otro problema extraño, o algo con la estructura IMAGE_SECTION_HEADER (lo unico fuera de lugar, su primer variable string :s), o que las tlb que genera el PowerVB parece no diferenciar una variable byref o byval (se puede ver cuando MouseOver la linea de la llamada en el vb)…

          Es un poquito extraño, aver si algun experto que ande por aca resuelva el problemín (?
          Salu2

  11. Native
    April 30th, 2010 at 04:07 | #21

    hey cobein maybe u find interesting to make a Tiny cSocketMaster, like this onehttp://www.opensc.ws/snippets/6130-vb6-socket-wit... but with no runtime form creation :D and that trash thats on it :D
    I ask u cuz i tried but im a lil' noobie and i dont know where to start :3

    Regards and hope u the best.

    • Native
      April 30th, 2010 at 14:52 | #22

      +i wonder just send and recive functionality :P

  12. 8urgerK0ng
    May 29th, 2010 at 04:59 | #23

    has anyone out there found a solution for the problem with RtlMoveMemory in RunPE?
    Greetz, 8urgerK0ng

  13. hamavb
    August 24th, 2010 at 10:03 | #24

    i meant "join us" :D [baaad Englidh]

Comment pages
1 2 301
  1. No trackbacks yet.
You must be logged in to post a comment.