Forums: Retrictrun.exe - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Retrictrun.exe my first tool *proud* :p

#1 User is offline   usch 

  • Staff Sergeant
  • Icon
  • Group: Specialist
  • Posts: 269
  • Joined: 19-January 04

Posted 22 September 2004 - 04:53 AM

hi guys

well i am not that coding guru so i thought a long time:
what tool can i code with my low skills that is at least a bit useful ?

my idea is related to this thread
http://www.governmen...showtopic=11249

-+----RestrictRun----+-

code by : usch

description:
	restrictrun is a tool that can restrict programs from running 
	by adding entries to the registry as described here : 
	http://www.winguides.com/registry/display.php/969/

	u can use it to prevent a virus on your system from running.

	note:1. you need to reboot for changes to take effect!
      2. DONT restrict important files like explorer or       regedit.exe!	
      i didnt test it but it could cause serious problems!


usage:

	RestrictRun.exe <filename>


greets to:
	
	br0mstar,Pip,x0x, codelinx.net and coding-board.de for helping  me with the code alttough its not a big and difficult one;)

	all the guys at #gso-chat and those who contribute to  govsec.org


contact: quantum IRC #gso-chat usch


if u want the source code for research,further development etc...
PM me or query me at #gso-chat


DOWNLOAD: http://mitglied.lyco...RestrictRun.rar
right click>save as
well i hope this tool will be useful 4 you


yours
usch
0

#2 User is offline   Antil 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 51
  • Joined: 30-December 03

Posted 22 September 2004 - 05:25 AM

maybe your first tool..but a damn good one m8 B)

nice job, will test a bit around with it
0

#3 User is offline   andydis 

  • Master Sergeant
  • Icon
  • Group: Specialist
  • Posts: 622
  • Joined: 21-August 03

Posted 22 September 2004 - 05:33 AM

Quote

u can use it to prevent a virus on your system from running.


or restict the actual anti-virus from running, depends what side you look at it :-)
0

#4 User is offline   iLLuSioN 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 113
  • Joined: 16-December 03

Posted 22 September 2004 - 10:19 AM

nice job , 1st one and its a good one keep up the work .
0

#5 User is offline   passi 

  • Sergeant First Class
  • Icon
  • Group: Members
  • Posts: 301
  • Joined: 09-September 03

Posted 22 September 2004 - 10:23 AM

Well done. It's a very useful tool :>

I try to prevent some firewalls to be executed when trying to own a machine :>
0

#6 User is offline   Serhat 

  • Second Lieutenant
  • Icon
  • Group: Members
  • Posts: 803
  • Joined: 13-January 04

Posted 22 September 2004 - 12:24 PM

Nice thinking m8 :)
here is a mirror
http://yourmother.th...RestrictRun.rar

Serhat
0

#7 User is offline   hidden 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 108
  • Joined: 29-November 03

Posted 22 September 2004 - 01:23 PM

thx man for ur tool i ll try it and hope it's to be continued ;) thx again
0

#8 User is offline   usch 

  • Staff Sergeant
  • Icon
  • Group: Specialist
  • Posts: 269
  • Joined: 19-January 04

Posted 22 September 2004 - 02:46 PM

well, i decided to release the code :=)
here it is
#include <stdio.h>
 #include <stdlib.h>
 #include <windows.h>
 #include <string.h>
 HKEY hkey;

 int STRING = 0x1;
 int main(int argc, char *argv[])
 {
      RegCreateKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", &hkey); 
	RegSetValueEx(hkey,
      "DisallowRun",
      0,
      REG_DWORD,
      (LPBYTE)&STRING,
      sizeof(STRING));

//	RegCloseKey(hkey);
 if(argc == 2)
 {

	RegCreateKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\DisallowRun", &hkey); 
	RegSetValueEx(hkey,
      argv[1],
      0,
      REG_SZ,
      (LPBYTE)argv[1],
      strlen(argv[1]));

	RegCloseKey(hkey);

 }   
else
{
 printf("&----------------------------------------------& \n");
printf("|                 RestrictRun                  | \n");
printf("&                  by usch                     & \n");
printf("|                                              | \n");
printf("&            #gso-chat at quantum              & \n");
printf("|                                              | \n");
printf("&----------------------------------------------& \n\n");

printf("  Usage: RestrictRun.exe <exefile> \n");        
   return 0;
 }
}


and thanks to all for your positive replies, theyre a very good motivation

yours

usch
0

#9 User is offline   MxMx 

  • Sergeant First Class
  • Icon
  • Group: Members
  • Posts: 329
  • Joined: 23-August 03

Posted 22 September 2004 - 11:43 PM

prevent ftp.exe tftp.exe and rcp.exe from running B)
0

#10 User is offline   h3llraz0r 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 144
  • Joined: 31-August 03

Posted 23 September 2004 - 06:14 PM

great work on this tool usch. simple yet powerful and useful.
0

#11 User is offline   Carlos 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 24
  • Joined: 25-August 03

Post icon  Posted 23 September 2004 - 07:36 PM

heh a nice way to kill ad-ware or spy-ware too. many uses, good start mate, thnx.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting