Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/30/2015 in all areas

  1. From the help file: #AutoIt3Wrapper_UseX64=y ;adjust this according to your os architecture #RequireAdmin #include <Array.au3> #include <WinAPI.au3> #include <WinAPIProc.au3> Local $aAdjust, $aList = 0 ; Enable "SeDebugPrivilege" privilege for obtain full access rights to another processes Local $hToken = _WinAPI_OpenProcessToken(BitOR($TOKEN_ADJUST_PRIVILEGES, $TOKEN_QUERY)) _WinAPI_AdjustTokenPrivileges($hToken, $SE_DEBUG_NAME, $SE_PRIVILEGE_ENABLED, $aAdjust) ; Retrieve command-line arguments for all processes the system If Not (@error Or @extended) Then $aList = ProcessList("wordpad.exe") For $i = 1 To $aList[0][0] $aList[$i][1] = _WinAPI_GetProcessCommandLine($aList[$i][1]) Next EndIf ; Enable SeDebugPrivilege privilege by default _WinAPI_AdjustTokenPrivileges($hToken, $aAdjust, 0, $aAdjust) _WinAPI_CloseHandle($hToken) _ArrayDisplay($aList, '_WinAPI_GetProcessCommandLine')
    2 points
  2. frank10

    WinHTTP functions

    I redid it! The functioning code is: Global $hRequest = _WinHttpSimpleRequest($hConnect, _ "GET", _ ; verb $newPage) instead of the not functioning one: Global $hRequest = _WinHttpOpenRequest($hConnect, _ "GET", _ ; verb $newPage)      _WinHttpSendRequest($hRequest) Now, if someone can tell me why the HttpSimpleRequest works and the OpenRequest no... Anyway I solved my task, thank you trancexx for the support.
    1 point
  3. At a quick glance I think maybe this line... FileWrite($aFinalFile[2],FileReadLine($aFileToRead[2], $a) & ",")Should be... FileWrite($aFiles,FileReadLine($aFileToRead[2], $a) & ",")Of course I could be wrong, but if I'm not you should also close that file in the loop the line is in.
    1 point
  4. I am sorry. Really I test your script then I want to learn from you.
    1 point
  5. Thanks for the link.
    1 point
  6. I wouldn't know. I don't really do security. Sorry I can't help.
    1 point
  7. Yeah sure, and next thing you'll say is that the earth is round. Blowing you for that, a kiss I mean.
    1 point
×
×
  • Create New...