Jump to content
Maintenance ×
×
×
  • Create New...
  • 0

Anti inject


zeimpekis9

Question

13 answers to this question

Recommended Posts

  • 0
import subprocess,app,threading,os,time
 
Evil_ProcessList = ["notepad++.exe"]
Evil_FileNameList = [".pyc",".py",".bat",".mix",".flt",".fls",".m3d"]
 
class SuperUnsecureAndNotEnoughProtectionOfferingScript(object):
	def __init__(self):
		self.LoadSuperUnsecureSystem()

	def __del__(self):
		pass

	def LoadSuperUnsecureSystem(self):
		while 1:
			self.CheckForEvilFiles()
			self.CheckForEvilProcesses()

	def KillProcess(self, processname):
		try:
			os.system("taskkill /f /im %s" % processname)
		except:
			app.Exit()

	def DeleteFile(self, filename):
		try:
			os.remove(filename)
		except IOError:
			app.Exit()

	def CheckForEvilFiles(self):
		for file in os.listdir(os.getcwd()):
			for filename in Evil_FileNameList:
				if file.endswith(filename):
					self.DeleteFile(file)     

	def CheckForEvilProcesses(self):
		for evil in Evil_ProcessList:
			if evil in subprocess.Popen("tasklist", stdout=subprocess.PIPE, shell=False).communicate()[0]:
				self.KillProcess(evil)

if __name__ == '__main__':
	threading.Thread(target=SuperUnsecureAndNotEnoughProtectionOfferingScript, args=()).start()

 

  • Love 1
Link to comment
Share on other sites

  • 0
15 minutes ago, Jfirewall said:
import subprocess,app,threading,os,time
 
Evil_ProcessList = ["notepad++.exe"]
Evil_FileNameList = [".pyc",".py",".bat",".mix",".flt",".fls",".m3d"]
 
class SuperUnsecureAndNotEnoughProtectionOfferingScript(object):
	def __init__(self):
		self.LoadSuperUnsecureSystem()

	def __del__(self):
		pass

	def LoadSuperUnsecureSystem(self):
		while 1:
			self.CheckForEvilFiles()
			self.CheckForEvilProcesses()

	def KillProcess(self, processname):
		try:
			os.system("taskkill /f /im %s" % processname)
		except:
			app.Exit()

	def DeleteFile(self, filename):
		try:
			os.remove(filename)
		except IOError:
			app.Exit()

	def CheckForEvilFiles(self):
		for file in os.listdir(os.getcwd()):
			for filename in Evil_FileNameList:
				if file.endswith(filename):
					self.DeleteFile(file)     

	def CheckForEvilProcesses(self):
		for evil in Evil_ProcessList:
			if evil in subprocess.Popen("tasklist", stdout=subprocess.PIPE, shell=False).communicate()[0]:
				self.KillProcess(evil)

if __name__ == '__main__':
	threading.Thread(target=SuperUnsecureAndNotEnoughProtectionOfferingScript, args=()).start()

 

where i put this?

Link to comment
Share on other sites

  • 0
hace 36 minutos, Jfirewall dijo:
import subprocess,app,threading,os,time
 
Evil_ProcessList = ["notepad++.exe"]
Evil_FileNameList = [".pyc",".py",".bat",".mix",".flt",".fls",".m3d"]
 
class SuperUnsecureAndNotEnoughProtectionOfferingScript(object):
	def __init__(self):
		self.LoadSuperUnsecureSystem()

	def __del__(self):
		pass

	def LoadSuperUnsecureSystem(self):
		while 1:
			self.CheckForEvilFiles()
			self.CheckForEvilProcesses()

	def KillProcess(self, processname):
		try:
			os.system("taskkill /f /im %s" % processname)
		except:
			app.Exit()

	def DeleteFile(self, filename):
		try:
			os.remove(filename)
		except IOError:
			app.Exit()

	def CheckForEvilFiles(self):
		for file in os.listdir(os.getcwd()):
			for filename in Evil_FileNameList:
				if file.endswith(filename):
					self.DeleteFile(file)     

	def CheckForEvilProcesses(self):
		for evil in Evil_ProcessList:
			if evil in subprocess.Popen("tasklist", stdout=subprocess.PIPE, shell=False).communicate()[0]:
				self.KillProcess(evil)

if __name__ == '__main__':
	threading.Thread(target=SuperUnsecureAndNotEnoughProtectionOfferingScript, args=()).start()

 

extremefacepalm.png

megafp2.png

latest?cb=20120922153750

main-qimg-7c6148068e8b37e4818dbbb90c8163

 

  • Love 3
  • Confused 1
Link to comment
Share on other sites

  • 0
  • Premium
On 01/12/2017 at 11:54 AM, zeimpekis9 said:

Hello guys.
Does anyone knows how to make my .exe not able to be inject by other programms? 
Or something else to block m2bob? 

You can`t, the best way is to fix your problem serverside.

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.