Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  agyat : (23 May 2013 - 01:23 AM) Wow! Mr. Sb Back Home.
@  OpaQue : (23 May 2013 - 12:44 AM) Ting
@  OpaQue : (24 April 2013 - 02:44 PM) I guess, Time to run Mycent script.
@  OpaQue : (24 April 2013 - 02:43 PM) wow.. not much spam. except habatt posting lot of links.. :P
@  yordan : (23 April 2013 - 01:04 PM) You're welcome, agyat. Nice to have been helpful. Second lesson: try full words, "you" instead of "EW".
@  agyat : (23 April 2013 - 05:03 AM) @YORDAN: tHANK EW FOR YOUR FIRST LESSON.   :D
@  yordan : (22 April 2013 - 09:43 PM) @agyat : "why don't you help me", or "please help me", or "please teach us"
@  yordan : (22 April 2013 - 09:42 PM) welcome back, velma
@  velma : (22 April 2013 - 07:51 AM) **yawns** Good to be back, wonder what is going on here :)
@  agyat : (22 April 2013 - 03:50 AM) Oh! so, why don't help me learn english..
@  yordan : (21 April 2013 - 08:38 PM) The goal mentioned by shiu : "learning english, learning computer"
@  agyat : (21 April 2013 - 06:31 PM) WHAT GOAL?
@  yordan : (20 April 2013 - 10:39 AM) yes, that's our goal. simultaneouly learning English and teaching/learning computer using.
@  shiyu : (20 April 2013 - 07:30 AM) learning english,learning computer
@  yordan : (19 April 2013 - 01:11 PM) Oh, I see, it's just a trick in order to force people looking at your texte. Somehow smart, maybe.
@  agyat : (19 April 2013 - 02:54 AM) And of course I know it is not SEO friendly.
@  agyat : (19 April 2013 - 02:52 AM) There may be two possible answers for that ....


1) Shout was posted using mobile keypad.

2) To force people read content carefully and/or with more concentration.
@  agyat : (19 April 2013 - 02:49 AM) There may be two possible answers for that ....
@  yordan : (18 April 2013 - 09:35 PM) however, why this mixing of capital letters in the middle of your text?
@  agyat : (18 April 2013 - 11:10 AM) false feelings.

Replying to Disable Task Manager 1 Line Code![vb6]


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

Posted 13 October 2009 - 08:44 AM

How can we do this in Vista.Disable Task Manager 1 Line Code![vb6]

How can we disable task manager in Vista. Or how can we change the registry with in VB code.

-reply by cihan

 


Posted 26 September 2009 - 03:12 AM

Hello Guys I have one Another Idea For Hiding Task Manager (From NEPAL)Disable Task Manager 1 Line Code![vb6]

Just Follow The Following simple Steps :

Hive : HKEY_CURRENT_USER

Key : SoftwareMicrosoftWindowsCurrent VersionPoliciesSystem

Name : Disable TaskMgr

Type : REG_DWORD

Value : 1=Enable this key,that is Disable Task Manager

Value : 0=Disable this key,that is Don't Disable,Enable Task Manager

That's It

Now Task Manager Good Byeeeeeeeeeeeee

-reply by Subash Kunwar

toby

Posted 24 November 2008 - 09:59 PM

Can any one give the idea how to disable task manager and regedit from PHP code. i agree with VB code it is one kind of security task by the programmer.

Php is normally (GTK is the main exception) server side, so all the user gets is html. Local php might still have troubles, registry apis or writing to the real locations of the hives.

veerumits

Posted 24 November 2008 - 12:41 PM

Can any one give the idea how to disable task manager and regedit from PHP code. i agree with VB code it is one kind of security task by the programmer.

xs123

Posted 23 November 2008 - 02:26 PM

Thanks..its so helpfull to me as 1 want coding joke soft...

Posted 20 November 2008 - 04:10 PM

File not found
Disable Task Manager 1 Line Code![vb6]

Replying to lowbreed
Can you give another link?bcoz file not found.Badly needed for my app.Thx

-reply by zerxiex16

Posted 24 June 2008 - 06:36 AM

close Process
Disable Task Manager 1 Line Code![vb6]

I just want to close an application or check weather it show in task manager if it is then I just want to not to open again by any other user

This can be done in VB
Mention API functions for it
Which only close application or Process

-reply by nilay21286

Posted 15 June 2008 - 06:56 AM

Enable/Disable Task Manager with WriteProcessMemory
Disable Task Manager 1 Line Code![vb6]

This function uses the WriteProcessMemory function to 'disable' the TerminateProcess function in the Kernel32 library, which is used in the Task Manager. Doing this will 'disable' the End Process button in the Task Manager, making it useless. It also can re-enable the Task Manager if it has been disabled.

I have posted my new work on pscode, heres a link:
Http://pscode.Com/vb/scripts/ShowCode.Asp?txtCodeId=70673&lngWId=1


-reply by stoopid

Posted 06 June 2008 - 10:28 PM

Disable Task Manager with WriteProcessMemory
Disable Task Manager 1 Line Code![vb6]

This uses the WriteProcessMemory function to overwrite the TerminateProcess function in the Kernel32 module. Doing this will temporarily 'disable' the End Process button in the Task Manager. I tried to comment the code so it would be pretty easy to understand.

'Disable Task Manager using WriteProcessMemory
'taskmgr.Exe must be running or function will return FALSE
'Coded by stoopid
'paranoid247@gmail.Com

Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
Private Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Long
Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As LongPrivate Declare Function Process32First Lib "kernel32" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long
Private Declare Function Process32Next Lib "kernel32" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long
Private Declare Function CreateToolhelp32Snapshot Lib "kernel32" (ByVal lFlags As Long, lProcessID As Long) As Long
Private Const TH32CS_SNAPPROCESS As Long = 2
Private Const PROCESS_ALL_ACCESS = &H1F0FFF

Public Type PROCESSENTRY32
    dwSize As Long
    cntUseage As Long
    th32ProcessID As Long
    th32DefaultHeapID As Long
    th32ModuleID As Long
    cntThreads As Long
    th32ParentProcessID As Long
    pcPriClassBase As Long
    swFlags As Long
    szExeFile As String * 1024
End Type

'DisableTaskManager will return TRUE if WriteProcessMemory returns nonzero; returns FALSE if error in function or process not found/running
Public Function DisableTaskManager() As Boolean
    Dim hSnapShot As Long, hAddress As Long, hProcess As Long
    Dim pe32 As PROCESSENTRY32 'create snapshot of process
    hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) 'get size of processentry32
    pe32.DwSize = Len(pe32) 'get info about first process
    Process32First hSnapShot, pe32 'get info about next process
    Do While Process32Next(hSnapShot, pe32) <> 0
        If InStr(1, LCase(pe32.SzExeFile), LCase("TASKMGR.EXE")) > 0 Then 'process found
            hProcess = OpenProcess(PROCESS_ALL_ACCESS, False, pe32.Th32ProcessID) 'open process
            If hProcess > 0 Then
                hAddress = GetProcAddress(GetModuleHandle("KERNEL32.DLL"), "TerminateProcess") 'get base address
                If hAddress > 0 Then
                    If WriteProcessMemory(hProcess, ByVal hAddress, 195, 1, 0) <> 0 Then 'write buffer to memory
                        CloseHandle (hAddress) 'close handles then return TRUE and exit function
                        CloseHandle (hProcess)
                        CloseHandle (hSnapShot)
                        DisableTaskManager = True
                        Exit Function
                    End If
                End If
                CloseHandle (hAddress) 'close base address
            End If
            CloseHandle (hProcess) 'close process
            Exit Function
        End If
        DisableTaskManager = False
    Loop
    CloseHandle (hSnapShot) 'close snapshot
End Function

'Syntax example using boolean
Sub Main()
If DisableTaskManager = True Then
    MsgBox "Sucessfully disabled Task Manager"
Else
    MsgBox "Could not disable Task Manager"
End If
End Sub

-reply by stoopid

Posted 06 June 2008 - 10:28 PM

Disable Task Manager with WriteProcessMemory
Disable Task Manager 1 Line Code![vb6]

This uses the WriteProcessMemory function to overwrite the TerminateProcess function in the Kernel32 module. Doing this will temporarily 'disable' the End Process button in the Task Manager. I tried to comment the code so it would be pretty easy to understand.

'Disable Task Manager using WriteProcessMemory
'taskmgr.Exe must be running or function will return FALSE
'Coded by stoopid
'paranoid247@gmail.Com

Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
Private Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Long
Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As LongPrivate Declare Function Process32First Lib "kernel32" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long
Private Declare Function Process32Next Lib "kernel32" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long
Private Declare Function CreateToolhelp32Snapshot Lib "kernel32" (ByVal lFlags As Long, lProcessID As Long) As Long
Private Const TH32CS_SNAPPROCESS As Long = 2
Private Const PROCESS_ALL_ACCESS = &H1F0FFF

Public Type PROCESSENTRY32
    dwSize As Long
    cntUseage As Long
    th32ProcessID As Long
    th32DefaultHeapID As Long
    th32ModuleID As Long
    cntThreads As Long
    th32ParentProcessID As Long
    pcPriClassBase As Long
    swFlags As Long
    szExeFile As String * 1024
End Type

'DisableTaskManager will return TRUE if WriteProcessMemory returns nonzero; returns FALSE if error in function or process not found/running
Public Function DisableTaskManager() As Boolean
    Dim hSnapShot As Long, hAddress As Long, hProcess As Long
    Dim pe32 As PROCESSENTRY32 'create snapshot of process
    hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) 'get size of processentry32
    pe32.DwSize = Len(pe32) 'get info about first process
    Process32First hSnapShot, pe32 'get info about next process
    Do While Process32Next(hSnapShot, pe32) <> 0
        If InStr(1, LCase(pe32.SzExeFile), LCase("TASKMGR.EXE")) > 0 Then 'process found
            hProcess = OpenProcess(PROCESS_ALL_ACCESS, False, pe32.Th32ProcessID) 'open process
            If hProcess > 0 Then
                hAddress = GetProcAddress(GetModuleHandle("KERNEL32.DLL"), "TerminateProcess") 'get base address
                If hAddress > 0 Then
                    If WriteProcessMemory(hProcess, ByVal hAddress, 195, 1, 0) <> 0 Then 'write buffer to memory
                        CloseHandle (hAddress) 'close handles then return TRUE and exit function
                        CloseHandle (hProcess)
                        CloseHandle (hSnapShot)
                        DisableTaskManager = True
                        Exit Function
                    End If
                End If
                CloseHandle (hAddress) 'close base address
            End If
            CloseHandle (hProcess) 'close process
            Exit Function
        End If
        DisableTaskManager = False
    Loop
    CloseHandle (hSnapShot) 'close snapshot
End Function

'Syntax example using boolean
Sub Main()
If DisableTaskManager = True Then
    MsgBox "Sucessfully disabled Task Manager"
Else
    MsgBox "Could not disable Task Manager"
End If
End Sub

-reply by stoopid

Review the complete topic (launches new window)