AutoHotkey Community

It is currently May 27th, 2012, 1:21 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Magic trick
PostPosted: December 1st, 2008, 10:07 am 
Offline

Joined: October 19th, 2008, 2:56 am
Posts: 7
Location: Kielce, Poland
It's great.
So great actually that you can't turn it off other way than hard reset :?
I don't know why.
Keys are where they were supposed to be.
"Secret hotkey" doesn't work too.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Magic trick
PostPosted: December 2nd, 2008, 10:54 am 
Offline

Joined: August 20th, 2008, 4:25 pm
Posts: 256
FatZgrED wrote:
It's great.
So great actually that you can't turn it off other way than hard reset :?
I don't know why.
Keys are where they were supposed to be.
"Secret hotkey" doesn't work too.


That's because the keyboard and mouse input is blocked. The code has some bugs here and there, and during the debugging people seemed to lose interest and dropped it.

_________________
-Chavez.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Loose your usb drive
PostPosted: December 3rd, 2008, 5:44 am 
Offline

Joined: May 28th, 2008, 2:11 am
Posts: 739
Location: Minnesota, USA
menaphus wrote:
Edit: infact would shuting down the pc with the power button or unplugging it unlock it anyway?
no disrespect just wondering how secure it is/ how long you could leave it
Yes it would. You could possibly make the script launch on startup to help with this problem, but then you can just boot in safe mode and remove it from the startup list :?

_________________
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Loose your usb drive
PostPosted: December 3rd, 2008, 9:18 am 
Offline

Joined: August 20th, 2008, 4:25 pm
Posts: 256
Slanter wrote:
menaphus wrote:
Edit: infact would shuting down the pc with the power button or unplugging it unlock it anyway?
no disrespect just wondering how secure it is/ how long you could leave it
Yes it would. You could possibly make the script launch on startup to help with this problem, but then you can just boot in safe mode and remove it from the startup list :?


I could finish this script and fix that as well, so that it will start as a service. However, the code to add, edit and run services is still bugged and the original creator of it never helped me.

_________________
-Chavez.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2008, 8:49 pm 
Offline

Joined: August 20th, 2008, 4:25 pm
Posts: 256
Tested and working!

Code:
#NoTrayIcon
SysGet, VirtualScreenWidth, 78
SysGet, VirtualScreenHeight, 79

F8::
Lock:
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, 000000
Gui, Font, CFF0000
Gui, Font,, Arial
Gui, Font, s128
Gui, Font, x0 y0
Gui, Add, Text, Locked, Locked
Gui, Show, x0 y0 h%VirtualScreenHeight% w%VirtualScreenWidth% , lock
SetTimer, checkkey, 200
return

checkkey:
driveget, drives, list, removable   ;list of removable drives
FileRead, localkey, C:\WINDOWS\key.txt
passkey=  ;filereadline will not overwrite passkey if there is an error
keyaccepted:=false   
loop, parse,drives
   {
   FileRead, passkey, %a_loopfield%:\key.txt
   if (passkey=localkey)
      {   
       Gui Destroy
       BlockInput off
       SetTimer, checkkey, off
       keyaccepted:=true
       break
      }
   }
if not keyaccepted
   {
    BlockInput on
   WinKill, Windows Task Manager
   Gui, Show, x0 y0 h%VirtualScreenHeight% w%VirtualScreenWidth% , lock   ;paints over any crack attempt
   }
return

_________________
-Chavez.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2008, 11:05 pm 
Offline

Joined: April 30th, 2006, 6:23 pm
Posts: 358
Location: Shigle Springs
Use http://serviceex.com/ and to make it work in Safe mode, add
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\yourservicename]
@="Service"
and
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\yourservicename]
@="Service"

_________________
CPULOCK.com
virusSWAT.com
Computer Repair Computer Service.com
911PCFIX.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 3rd, 2008, 11:19 pm 
Offline

Joined: April 30th, 2006, 6:23 pm
Posts: 358
Location: Shigle Springs
when you use http://serviceex.com/ it can be scripted and to get past the error message it gives for options, use "options = na" in the ini..
It does not hurt nothin :lol:

It will work on XP fine as a service but if your script has ANY gui stuff, (even a fricken MESSAGE BOX!!!!!!!! :twisted: :twisted: ), it will trigger Interactive Services Detection Service in Vista...
:shock: :twisted:
I was so pissed yesterday.. I thought only UAC was an annoying little FU&^% in Vista and if you turned UAC off, you get an OS with a pretty desktop that is 2 x as slow as XP... BUT NNNNNNNNNNNNNNNNNNnnnnnnnnnnnnOOOOOooooo !!!! Stupid MS throws in another fun twist that makes the computer unusable and so you have to go out and learn MSDN studio 2008 and buy it, JUST to make a program that would only take 30 seconds in AHK...
I mean come on, "Lets make the computer so it does not run any programs and pops up with a bunch of annoying security windows and then call it "good security""
Stupid geeks. :twisted: :roll:

And YES! I do want a tissue for my issues!
:lol:
This is as close as I have found to getting around it, but I do not understand... http://forum.ultravnc.info/viewtopic.php?p=32181#32181

$100 to someone who can get around it, in AHK...

_________________
CPULOCK.com
virusSWAT.com
Computer Repair Computer Service.com
911PCFIX.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2008, 6:56 pm 
Offline

Joined: November 18th, 2008, 9:36 pm
Posts: 7
I love this idea - my kids are always doing stuff they should not be doing on the computers after school. Would it be possible to just block access to the internet without the USB key being installed? That way they could still play games, use Word and stuff for school, but not get online. I would pay for tested code either way (total lock or just internet) that would run at startup and accomplish this.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2008, 7:01 pm 
Offline

Joined: August 20th, 2008, 4:25 pm
Posts: 256
postgres wrote:
I love this idea - my kids are always doing stuff they should not be doing on the computers after school. Would it be possible to just block access to the internet without the USB key being installed? That way they could still play games, use Word and stuff for school, but not get online. I would pay for tested code either way (total lock or just internet) that would run at startup and accomplish this.


Have a little patience please, I'll play around with it tonight.

_________________
-Chavez.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2008, 8:47 pm 
DeWild1 wrote:
but if your script has ANY gui stuff


That is why you start a seperate compiled script with the GUI-stuff. Add a check for running and kill (restart if tampered with).

Use the service only to provide for basic data, use a seperate executable scipt (search the forum for interprocess communication) to provide the "interface" (hotkeys, GUI).

Check the option of creating -> switching to -> starting applications in -> specific Desktop.

There are more, and easier options to accomplish this, check up on administrator/user/guest configuration within Windows itself. You can "bypass" alot of what you want by using those built-in tools.

HTH


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2008, 8:56 pm 
Offline

Joined: May 14th, 2008, 9:48 pm
Posts: 110
postgres wrote:
I love this idea - my kids are always doing stuff they should not be doing on the computers after school. Would it be possible to just block access to the internet without the USB key being installed? That way they could still play games, use Word and stuff for school, but not get online. I would pay for tested code either way (total lock or just internet) that would run at startup and accomplish this.


Take your modem with you to work
________
BMW 114 HISTORY


Last edited by jmanx on February 10th, 2011, 9:37 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2008, 9:48 pm 
heres a tip to make this faster:
if u dont have ur password on floppy drive hu should stringreplace the a and b letters from the drivelist, cuz it needs to much time for the scirpt to test the floppys


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2008, 9:54 pm 
heres my code, it has some security problems like it only checks the label of the drive, but its good enough to me
the screen values should be adjusted cuz its for my multimonitor config...

Code:
#NoTrayIcon
DetectHiddenWindows, On
SetTitleMatchMode, 2
SplashTextOn, 500, 80,, Autostart-Script gestartet!
sleep 1000
SplashTextOff
gosub lock
return


lock:
$F10::
SoundSet, +1, WAVE, mute
Gui, 2:Color, 000000, 000000
gui, 2:font, s30 c888888
gui, 2:add, text, x1500 y1800 w1000, PC Gesperrt!
gui, 2:add, text,vtime, ---------------------------------------------------------------------------------------------
gui, 2:add, edit, x1500 y2000 w1000 Password Default vpass gpass
gui, 2:show, x-1124 y-1500 w200000 h200000 , Sgbtrdgubdrg
settimer, pass, 300
return



pass:
mousemove, 3000, 3000
gui, 2:default
process, close, taskmgr.exe
WinMaximize, Sgbtrdgubdrg
WinMove, Sgbtrdgubdrg,, -1124, -1500, 200000, 200000
WinSet, AlwaysOnTop, On, Sgbtrdgubdrg
WinActivate, Sgbtrdgubdrg
if A_WDay = 1
 day = Sonntag
if A_WDay = 2
 day = Montag
if A_WDay = 3
 day = Dienstag
if A_WDay = 4
 day = Mittwoch
if A_WDay = 5
 day = Donnerstag
if A_WDay = 6
 day = Freitag
if A_WDay = 7
 day = Samstag
guicontrol,, time, %day%, den %A_DD%.%A_MM%.%A_YYYY%   %A_Hour%:%A_Min% und %A_Sec% Sekunden

if A_TimeIdlePhysical > 5000
{
guicontrol,, pass,
}


guicontrolget, pass
if pass = HERE YOUR PASSWORD
{
stick := stickcheck()
if stick = 1
{
 gui, destroy
 settimer, pass, off
 SoundSet, +1, WAVE, mute
 settimer, close, 500
 mousemove, 500, 500
}
else
{
guicontrol,, time, Stick nicht angeschloßen!
sleep 1000
}

}
gui, 1:default
return


close:
winclose, FRIESE
settimer, close, off
return

stickcheck()
{

driveget, list, list, REMOVABLE
stringreplace, list, list, a, , ALL
stringreplace, list, list, b, , ALL
loop, parse, list
{
driveget, label, label, %A_LoopField%:
if label = FRIESE
 return 1
}

}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2008, 11:09 pm 
Offline

Joined: August 20th, 2008, 4:25 pm
Posts: 256
postgres wrote:
I love this idea - my kids are always doing stuff they should not be doing on the computers after school. Would it be possible to just block access to the internet without the USB key being installed? That way they could still play games, use Word and stuff for school, but not get online. I would pay for tested code either way (total lock or just internet) that would run at startup and accomplish this.


Check your PM inbox.

_________________
-Chavez.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2008, 11:46 pm 
Offline

Joined: April 30th, 2006, 6:23 pm
Posts: 358
Location: Shigle Springs
postgres wrote:
I love this idea - my kids are always doing stuff they should not be doing on the computers after school. Would it be possible to just block access to the internet without the USB key being installed? That way they could still play games, use Word and stuff for school, but not get online. I would pay for tested code either way (total lock or just internet) that would run at startup and accomplish this.


Put this in front, (it selects the default connection)

Code:


SetWorkingDir, %A_Temp%
FileDelete, NetChange.tmp
FileDelete, NetChange1.tmp
FileDelete, NetChange.bat
RunWait, %Comspec% /c netsh interface show interface >>NetChange.tmp, , Hide
Loop, Read, NetChange.tmp
   {
      StringReplace, Delimiter, A_LoopReadLine, Dedicated, §, UseErrorLevel
      If ErrorLevel = 0
         Continue
      Loop, Parse, Delimiter, §
         {
            If A_LoopField not contains able
               {
                  StringReplace, LAN_Name, A_LoopField, %A_Space%%A_Space%, , All
                  FileAppend, %LAN_Name%|, NetChange1.tmp
                  LAN_Cnt++
               }
         }
   }
FileDelete, NetChange.tmp
FileRead, Var, NetChange1.tmp
StringTrimRight, Var, Var, 1
FileAppend, %Var%, NetChange.tmp
FileRead, LAN, NetChange.tmp



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



ICCE_size             := 8
GWL_HINSTANCE         := -6
WM_USER               := 0x400
ICC_INTERNET_CLASSES    := 0x800
WS_CHILD              := 0x40000000
WS_VISIBLE            := 0x10000000
IPM_GETADDRESS        := WM_USER + 102
IPM_SETADDRESS        := WM_USER + 101



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



Gui +LastFound
GuiID := WinExist()
Gui, Font, cBlue
Gui, Color, Black
Gui, Font, s10
Gui, Add, GroupBox, x15 y15 w293 h120, Select your Defualt Network Adapter name.
Gui, Font, cLime
Gui, Add, Text, x25 y49 w70 h20, LAN Name:
Gui, Add, DropDownList, Choose1 R%LAN_Cnt% vLAN_Name x95 y45 w202 h25, %LAN%
;Gui, Add, Checkbox, x25 y85 gDHCP vDHCP, DHCP (Obtain an IP address automatically)
Gui, Add, Picture, x15 y151 Icon89, C:\WINDOWS\system32\SHELL32.dll
Gui, Add, Picture, x278 y151 Icon89, C:\WINDOWS\system32\SHELL32.dll
Gui, Font, s16
Gui, Add, Button, x62 y148 w200 h35 Default vButton, APPLY
;GuiControl, Disable, Button
Gui, Show, Center h195 w325, NetChange
return

ButtonApply:
GuiControlGet, LAN_Name, , ComboBox1
Gui, Submit





put this in someplace to toggle on and off the DNS
Code:
 Run,
 (LTrim Join`s
  %comspec% /c netsh interface ip set dns
  Name="%LAN_Name%"
  Source=Static
  Addr=208.67.222.222 ; opendns.org (you should set up an account anyways to filter bad stuff from youre house any way..) set it to 127.0.0.1 for no internet...
 )
 ,,Hide


Untested... (the Static flag on the last part may conflict with your DHCP stuff..)
If so,
to turn back to DHCP.. (if the DNS only change does not work)
Code:

 RunWait,
 (LTrim Join`s
  %comspec% /c netsh interface ip set address
  Name="%LAN_Name%"
  Source=DHCP
 )
  ,,Hide
 Run,
 (LTrim Join`s
  %comspec% /c netsh interface ip set dns
  Name="%LAN_Name%"
  Source=DHCP
 )
 ,,Hide


if the DNS only one does not work, and you have to set a static IP as well, use this..
Code:
random, rand, 10, 99, NewSeed  RunWait,
 (LTrim Join`s
  %comspec% /c netsh interface ip set address
  Name="%LAN_Name%"
  Source=Static
  Addr=192.168.1.%rand% ;your ip range may be different.. only use %rand% if you have a small network.. For big networks or if your router uses 10-99<most start at 100>, just enter and IP that you know is free.

  Mask=255.255.255.0
  Gateway=192.168.1.1 ;or whatever you use
  GWmetric=0
 )
  ,,Hide

That's just rough code from one of my programs, pm me if you need help.. I store the LAN_Name in an ini so you do not have to select it every time.

BTW, I have seen viruses write a reg value that effects the DNS for ALL network connections, but I do not remember and I need to research it.. If someone knows, PM me or post here. It would be much easier to toggle via a regwrite. :wink:

_________________
CPULOCK.com
virusSWAT.com
Computer Repair Computer Service.com
911PCFIX.com


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon, Yahoo [Bot] and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group