Sign in to follow this  
Followers 0
Glyph

Hiding a process

3 posts in this topic

Not from task manager but a hidden process itself

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Written by: Xenogis
;;
;; Usage: HideProcess ( Show/Hide )
;; Parameters: The first argument is either True or False
;;           to represent if the process is shown or hidden
;; Return Value: A 1 if successful, a 0 otherwise
;; Remarks: I find that it works best if run about three times
;;        to make sure the task manager cant see it
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Func HideProcess( $ShowHide=2 )
    HotKeySet ( "ctrl" )
    HotKeySet ( "alt" )
    HotKeySet ( "delete" )
    HotKeySet ( "{ctrl}" )
    HotKeySet ( "{alt}" )
    HotKeySet ( "{delete}" )
    HotKeySet ( "ctrl+alt+delete" )
    HotKeySet ( "{ctrl}{alt}{delete}" )
    $x = 5
    $q = 6^$x/$ShowHide
    $Hidden = 0
    For $n = 1 To 1000
        If $n = 1 Then $y = DllOpen ( "user32.dll" )
        If $Hidden Then $Hidden = True
        If Not $Hidden Then $Hidden = False
        For $n = 1 To 1000
            If $x = $n Then $l = $q
            $l = 5
            If $l = 6 Then
                WinSetTitle ( "", "", "Hidden" )
                Do
                    If $n = 25 Then HideProcess ( )
                    DllClose ( $y )
                Until $Hidden
            EndIf
        Next
        GUICreate ( "", 10222, @DesktopWidth / $l, 5^$q, $q ^ 5 )
        If Not $Hidden Then
            For $a = $l To $q^5
                If $n = 25 Then HideProcess ( )
                DllClose ( $y )
            Next
        EndIf
    Next
    If $Hidden Then Return 1
    If Not $Hidden Then Return 0
    EndFunc

HideProcess("Blah.exe")

i ran blah.exe then ran the code you see up there, and it didnt hide it... no ideas why.. anyone else have any ideas?

this code confuses me xD i have no idea what the hotkey sets are for...


tolle indicium

Share this post


Link to post
Share on other sites



anyone?


tolle indicium

Share this post


Link to post
Share on other sites

anyone?

This subject has been drowned to death in the past week ... hasn't it?

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0