• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Page 1 of 3 123 LastLast
    Results 1 to 10 of 25
    1. #1
      Newbie
      MOTHERFUCKING HACKER
       
      Hacking
       
      Nickruig's Avatar
      Join Date
      Mar 2013
      Posts
      10
      Thanks (-->)
      1
      Thanks (<--)
      0

      Question Process Suspender

      John Kittz
      Im making a Process Suspender. You need to type the Process Name in a TextBox without typing the file extension so the extension is standard an .EXE, but I dont want to suspend an .EXE Process. How can i do that I can use another File Extension?


      Code I Use:

      Public Class Form1
      Private Sub SuspendProcess(ByVal process As System.Diagnostics.Process)
      For Each t As ProcessThread In process.Threads
      Dim th As IntPtr
      th = OpenThread(ThreadAccess.SUSPEND_RESUME, False, t.Id)
      If th <> IntPtr.Zero Then
      SuspendThread(th)
      CloseHandle(th)
      End If
      Next
      End Sub


      Private Sub ResumeProcess(ByVal process As System.Diagnostics.Process)
      For Each t As ProcessThread In process.Threads
      Dim th As IntPtr
      th = OpenThread(ThreadAccess.SUSPEND_RESUME, False, t.Id)
      If th <> IntPtr.Zero Then
      ResumeThread(th)
      CloseHandle(th)
      End If
      Next
      End Sub

      Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      Dim game As Process() = Process.GetProcessesByName(TextBox1.Text)
      If Button1.Text = "Suspend" Then
      SuspendProcess(game(0))
      Button1.Text = "Resume"
      Else
      ResumeProcess(game(0))
      Button1.Text = "Suspend"
      End If
      End Sub



      And I use a Module:

      Module Module1
      Public Enum ThreadAccess As Integer
      TERMINATE = (&H1)
      SUSPEND_RESUME = (&H2)
      GET_CONTEXT = (&H8)
      SET_CONTEXT = (&H10)
      SET_INFORMATION = (&H20)
      QUERY_INFORMATION = (&H40)
      SET_THREAD_TOKEN = (&H80)
      IMPERSONATE = (&H100)
      DIRECT_IMPERSONATION = (&H200)
      End Enum

      Public Declare Function OpenThread Lib "kernel32.dll" (ByVal dwDesiredAccess As ThreadAccess, ByVal bInheritHandle As Boolean, ByVal dwThreadId As UInteger) As IntPtr
      Public Declare Function SuspendThread Lib "kernel32.dll" (ByVal hThread As IntPtr) As UInteger
      Public Declare Function ResumeThread Lib "kernel32.dll" (ByVal hThread As IntPtr) As UInteger
      Public Declare Function CloseHandle Lib "kernel32.dll" (ByVal hHandle As IntPtr) As Boolean
      End Module



      I hope someone can help me!

      #Nickruig
      Last edited by Nickruig; 12-22-2013 at 12:56 PM.

    2. #2
      Learning to hack games!
       
      Feeling Normal
       
      's Avatar
      Join Date
      Jan 1970
      Posts
      0
      Thanks (-->)
      294
      Thanks (<--)
      328
      Use the code tags please. Makes it more readable.

    3. #3
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Don't pass a process but the process name or ID then and in your Suspend/Resume -Process function you'll get the System.Diagnostics.Process.. You can loop through processes.

    4. #4
      Newbie
      MOTHERFUCKING HACKER
       
      Hacking
       
      Nickruig's Avatar
      Join Date
      Mar 2013
      Posts
      10
      Thanks (-->)
      1
      Thanks (<--)
      0
      Quote Originally Posted by till0sch97 View Post
      Don't pass a process but the process name or ID then and in your Suspend/Resume -Process function you'll get the System.Diagnostics.Process.. You can loop through processes.
      What? I dont understand

    5. #5
      Coder
      Kappa
       
      Hacking
       
      Szaka's Avatar
      Join Date
      Mar 2013
      Posts
      168
      Thanks (-->)
      1
      Thanks (<--)
      6
      I guess you need to pass handle to process, so the .exe or other extension doesnt make any difference

    6. #6
      Newbie
      MOTHERFUCKING HACKER
       
      Hacking
       
      Nickruig's Avatar
      Join Date
      Mar 2013
      Posts
      10
      Thanks (-->)
      1
      Thanks (<--)
      0
      Quote Originally Posted by Szaka View Post
      I guess you need to pass handle to process, so the .exe or other extension doesnt make any difference
      That doesnt work!

    7. #7
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Quote Originally Posted by Szaka View Post
      I guess you need to pass handle to process, so the .exe or other extension doesnt make any difference
      He's basically already doing that........................

    8. #8
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Some time ago I coded C#, but as I remember you just need to pass the process name without any extension to get the handle - if you're process name is e.g. "game.tmp" then you could call Process.GetProcessesByName("game") and then pass the process you get into your function..

      Code:
      Process p = Process.GetProcessesByName("game")(0);
      SuspendProcess(p);
      ResumeProcess(p);
      Should work well.

    9. #9
      Newbie
      MOTHERFUCKING HACKER
       
      Hacking
       
      Nickruig's Avatar
      Join Date
      Mar 2013
      Posts
      10
      Thanks (-->)
      1
      Thanks (<--)
      0
      Quote Originally Posted by till0sch97 View Post
      Some time ago I coded C#, but as I remember you just need to pass the process name without any extension to get the handle - if you're process name is e.g. "game.tmp" then you could call Process.GetProcessesByName("game") and then pass the process you get into your function..

      Code:
      Process p = Process.GetProcessesByName("game")(0);
      SuspendProcess(p);
      ResumeProcess(p);
      Should work well.
      Thx, But im making it in Visual Basic.

    10. #10
      Coder
      Learning to hack games!
       
      Coding
       
      Helios's Avatar
      Join Date
      May 2012
      Location
      Denmark
      Posts
      209
      Thanks (-->)
      24
      Thanks (<--)
      34
      Cheats'n'Trainers
      Quote Originally Posted by Nickruig View Post
      but I dont want to suspend an .EXE Process. How can i do that I can use another File Extension?
      What do you mean? That doesn't make sense.

      Dude (OP), you obviously do not know this language well enough to create something like a process suspender. I mean, a quick Google search and you find a Youtube video and a forum thread with the exact same code, meaning you simply copied the code and now want help to change it.

      I suggest you start with something that is easier (simple) to create.

    Page 1 of 3 123 LastLast

    Similar Game Hacker Threads

    1. [Help] manual mapping into 64bit Process
      By Loset in forum Hacking Help
      Replies: 4
      Last Post: 03-24-2016, 12:08 PM
    2. [Help] Python CreateRemoteThread crashing process
      By rubberduccky in forum Hacking Help
      Replies: 10
      Last Post: 11-20-2015, 07:47 AM
    3. [Help] Read Process Memory from Process + mono.dll
      By ranseier in forum C#
      Replies: 2
      Last Post: 09-26-2015, 07:26 AM
    4. Windows 8.1/10 Process Injecting
      By VirtualProtect in forum Hacking Help
      Replies: 1
      Last Post: 08-19-2015, 09:31 PM
    5. base adress of a dll process ?
      By bld01 in forum Hacking Help
      Replies: 5
      Last Post: 12-09-2012, 05:01 AM

    Tags for this Thread