Jump to content

DMilton

Active Members
  • Posts

    132
  • Joined

  • Last visited

Posts posted by DMilton

  1. I think, there's no need of using the variable progfiles:

    SET progfiles=%HOMEDRIVE%\Program Files

    or

    SET progfiles=%HOMEDRIVE%\Program Files (x86)

    Instead of it, if you use the enviroment variable %PROGRAMFILES% in all of the code, it will be not neccesary the progfiles variable.

    For example, in Spanish version of any Win OS the path must be chaged to: <_<

    SET progfiles=%HOMEDRIVE%\Archivos de Programa

    May be it can be changed? :unsure:

  2. well i must admit i kinda jumped at the last problem the code does work by defualt my code just displays the version number major.minor (build no)

    my output was:

    Version is 5.1 (2600)

    Press any key to continue . . .

    i can make switch based on what os ver is detected

    I believe you, then, by the momment, the code do the same as "ver" dos command, isnt it?

    yes it needs to be compiled...if i can get this working i will upload it to my site(NOT RS)

    is it faster then batch? LOL...you bet your sweet ass it is and its also faster the vb/vbs but if Steve8x or someone else swooped in and coded it in asm...you would see an extreme speed increase

    but heh im just a C++ programmer

    Im not a C++ programmer, in fact im only a fucking newbie! Feel free to kick my ass in any momment! :(

    im just having a small problem understanding whats the purpose of the reason needing this program tho :)

    Sorry, if I understand you (my understanding is a bit limmited due im not english speaker but spanish), you ask for the purpose of the needing of this program... As I far I can get, the needing of the program itself will be to do easier and faster the need of testing the OS installed, because it will determine some different behaviours of the payload.

    The need of the detection of version language installed will be to do more effective the payload against any system, because the paths of certain programs vary depending of it.

    Have I answered your question? don`t worry... kick it!

  3. #include &lt;windows.h&gt;
    #include &lt;stdio.h&gt;
    ...etc...
    }

    and i could modify it as follows

    if

    win98 run stuff from win98 folder

    if

    winxp run stuff from winxp folder

    etc..etc..

    1st. I think is a good idea. Probably resolves some problems with the OS detection but... must be compiled or just works as a vb routine? Is your code faster than the piece of the batch that did the same before? Have you verified it? :huh:

    2nd. Can the code determine when a WinXP32 or WinXP64 (as Vista) is installed?

    3rd. May be I must try it before asking nonsenses but can you post the results? :rolleyes:

    4th. Can you do the same with the language installation? :P

  4. I had a problem of the batch file not finding the "FIND" command.

    I made mine look like:

    ver|%windir%\system32\find.exe "[Version 5.00."

    I need to check if win2k has a system32 directory.

    (It'd probably be easiest to just put a copy of the "FIND" command on the thumbdrive)

    Windows 2000 has a system32 directory then the code must work.

    You can also try with:

    ver|%systemroot%\system32\find.exe "[Version 5.00."

    or

    ver|%systemroot%\system32\find.exe "5.00."

    for all os languages... :P

  5. I tried last code in various laptops but in one of them It didnt go as it was expected. It was Windows XP SP3 installed on it but the batch was telling me it was a win2k (1st option of the batch).:blink:

    I tried this code and went perfect in all of the systems.

    ver|find "5.00."
    if %errorlevel% EQU 0 goto SetOSwin2k
    ver|find "5.1."
    if %errorlevel% EQU 0 goto SetOSXP32
    ver|find "5.2."
    if %errorlevel% EQU 0 goto SetOSXP64
    ver|find "6.0."
    if %errorlevel% EQU 0 goto SetOSVISTA32
    ver|find "6.???"
    if %errorlevel% EQU 0 goto SetOSVISTA64
    :SetOSDefault
    goto SetOSXP32
    :SetOSwin2k
    SET CurrentOS=win2k
    GOTO EndDetect
    :SetOSXP32
    SET CurrentOS=XP32
    GOTO EndDetect
    :SetOSXP64
    SET CurrentOS=XP64
    GOTO EndDetect
    :SetOSVISTA32
    SET CurrentOS=VISTA32
    GOTO EndDetect
    :SetOSVISTA64
    SET CurrentOS=VISTA64
    GOTO EndDetect
    :EndDetect

    Someone knows why the batch was jumping the "if errorlevel 1 goto..." instruction?

    May be this code works better?

  6. For all languages OS detection, If you modify:

    ver|find "[Version 5.00."
    if errorlevel 1 goto SetOSwin2k
    ver|find "[Version 5.1."
    if errorlevel 1 goto SetOSXP32
    ver|find "[Version 5.2."
    if errorlevel 1 goto SetOSXP64
    ver|find "[Version 6.0."
    if errorlevel 1 goto SetOSVISTA32
    ver|find "[Version 6.???"
    if errorlevel 1 goto SetOSVISTA64
    :SetOSDefault
    goto SetOSXP32
    :SetOSwin2k
    SET CurrentOS=win2k
    GOTO EndDetect
    :SetOSXP32
    SET CurrentOS=XP32
    GOTO EndDetect
    :SetOSXP64
    SET CurrentOS=XP64
    GOTO EndDetect
    :SetOSVISTA32
    SET CurrentOS=VISTA32
    GOTO EndDetect
    :SetOSVISTA64
    SET CurrentOS=VISTA64
    GOTO EndDetect
    :EndDetect

    The code will not work for spanish systems (or other I supose), because the ver command shows lines as "VersiĆ³n 5.00....". You can modify the code with:

    ver|find "5.00."
    if errorlevel 1 goto SetOSwin2k
    ver|find "5.1."
    if errorlevel 1 goto SetOSXP32
    ver|find "5.2."
    if errorlevel 1 goto SetOSXP64
    ver|find "6.0."
    if errorlevel 1 goto SetOSVISTA32
    ver|find "6.???"
    if errorlevel 1 goto SetOSVISTA64
    :SetOSDefault
    goto SetOSXP32
    :SetOSwin2k
    SET CurrentOS=win2k
    GOTO EndDetect
    :SetOSXP32
    SET CurrentOS=XP32
    GOTO EndDetect
    :SetOSXP64
    SET CurrentOS=XP64
    GOTO EndDetect
    :SetOSVISTA32
    SET CurrentOS=VISTA32
    GOTO EndDetect
    :SetOSVISTA64
    SET CurrentOS=VISTA64
    GOTO EndDetect
    :EndDetect

    It will work for all languages OS's. ;)

  7. Hi everybody!

    I have some questions about your payload.

    I have been testing for some payloads before, but yours is the best one I've ever found. :rolleyes:

    Have you think about coding your payload in a way it can be useful for everybody in everywhere? I mean, the pocketnife is very useful when it's running in a English Windows machine but... What about other languages as Spanish? :(

    Im an spanish user (sorry of my english) and I have to modify your code for doing the same in spanish computers. Instead of this I think there is some ways to find the correct paths without the need of "translating" it.

    Ill be proud to help in developing this beatiful tool If you want. ;)

×
×
  • Create New...