->VIRUS<-
1.Recopilación de los virus mas famosos, entre los cuales cabria destacar
el mortífero (aunque simple :-( ) virus VBSLOVELETTER o ILOVEYOU (como
mas os mole), también muy importante y virulento, el virus MELISSA,
entre muchos otros...
->TROYANOS<-
1.SUBSEVEN: reciente (+ o -) troyano, que tiene
características bastante interesantes
.
2 . BLACK ORIFICE:
tremenda herramienta que no debe faltar en la biblioteca
de todo hacker moderadamente capaz, creado hace años, supuso
una revolución del mundo underground y una pesadilla para los usuarios
del Win9x (bien por inexperiencia, bien por ser jilipollas XD), añade
a su fácil manejo la capacidad de controlar casi todas las facetas de
la maquina objetivo.
->SCRIPTS<-
Para empezar os pondré algunas pijadillas para vuestras paginas, sobre
todo, escritas en JAVASCRIPT.
1.Convertidor de pesetas en euros (tb para otras monedas).
2.Script
que deshabilita el botón derecho sobre imágenes (si tienes una web porno
ya sabes...).
Deshabilitar botón derecho
3.Script
que refleja una imagen y parece agua (Dios mío).
Reflexión de imagen
4.Script
que abre una ventana popup en base al tamaño de la pagina (o bien puede
usarse pa joder...)
Abrir imagen
Ahora
algunos scripts en ASP y PHP
1.Script en ASP para subir archivos (una pasada, en serio).
<%
'************************************* Funcion para cambiar el nombre al archivo **************
Function cambiar_nombre(archivo_original,este_folder_variable,letras)
directorio_final = server.MapPath(".") & este_folder_variable ' esto es grabar el archivo subido abajo del directorio actual en este_folder_variable
x = revisar(directorio_final)
If x = "1" then
Response.write "Se creó un directorio especialmente para ti....."
Else
Response.write "Se agrego el siguiente archivo a tu directorio..."
End if
Randomize
cadena_variable = ""
temp = directorio_final & archivo_original
temp2 = temp
caracteres_a_agregar = letras
' caracteres_a_agregar es la cantidad de caracteres que se agregaran al inicio
' del nombre del archivo original
For i = 1 to caracteres_a_agregar
cadena_variable = cadena_variable & chr(int(Rnd * 26) + 65) '65 es el ASCII para la "A"
Next
' temp = cadena_variable & "-" & temp 'asi queda el archivo modificado
temp = directorio_final & cadena_variable & "-" & archivo_original 'asi queda el archivo modificado
' ahora se verificara que el "nuevo archivo" exista o no, si existe se vuelve a ejecutar este fun
Dim fso, msg
Set fso = CreateObject("Scripting.FileSystemObject")
If (fso.FileExists(temp)) Then
cambiar_nombre(temp2) ' aqui se manda de vuelta a "randomizar" el nombre porque ya existe
Else
cambiar_nombre = temp ' aqui se regresa el nombre del archivo ya modificado y verificado que es unico
exit function
End If
End Function
'************************************* Fin de funcion para cambiar el nombre al archivo **************
%>
<%
'*************************************************** revisar que exista un directorio, si no, que lo haga
Function revisar(folder)
Dim fso, msg,f
Set fso = CreateObject("Scripting.FileSystemObject")
If not (fso.FolderExists(folder)) Then
Set f = fso.CreateFolder(folder)
revisar = "1"
Else
revisar = "0"
End If
End Function
%>
<%response.buffer=true
Func = Request("Func")
if isempty(Func) then
Func = 1
end if
Select case Func
case 1
'You do not need to use this form to send your files.
'However you should not give your submit button a NAME or ID.
%>
Please select a picture to upload.
<%
case 2
ForWriting = 2
adLongVarChar = 201
lngNumberUploaded = 0
limite_de_tamano = 5000000 'cada uno de los archivos no puede medir mas de 5 millones de bytes
caracteres_a_agregar = 5 ' cantidad de letras que agreraran al inicio del nombre del archivo
este_folder_variable = "\archivos-subidos\" 'este es un folder abajo de la pagina actual donde se grabaran los archivos
' extensiones1 = ".jpg"
' extensiones2 = ".gif"
' extensiones3 = ".doc"
' extensiones4 = ".ppt"
' extensiones5 = ".xls"
' extensiones6 = ".zip"
Response.write "Existe un limite de " & limite_de_tamano & " bytes para cada uno de los archivos a subir..." & " "
Response.write "Se agregaran " & caracteres_a_agregar & " caracteres al inicio del nombre de los archivos renombrados..." & " "
Response.write "Los archivos se grabaran en " & este_folder_variable & " que estara abajo de esta pagina..." & " "
' Response.write "Solo se pueden subir archivos con ext... " & extensiones1 & extensiones2 & extensiones3 & extensiones4 & extensiones5 & extensiones6 & " "
response.write " "
'Get binary data from form
noBytes = Request.TotalBytes
binData = Request.BinaryRead (noBytes)
'convery the binary data to a string
Set RST = CreateObject("ADODB.Recordset")
LenBinary = LenB(binData)
if LenBinary > 0 then
RST.Fields.Append "myBinary", adLongVarChar, LenBinary
RST.Open
RST.AddNew
RST("myBinary").AppendChunk BinData
RST.Update
strDataWhole = RST("myBinary")
End If
'get the boundry indicator
strBoundry = Request.ServerVariables ("HTTP_CONTENT_TYPE")
lngBoundryPos = instr(1,strBoundry,"boundary=") + 8
strBoundry = "--" & right(strBoundry,len(strBoundry)-lngBoundryPos)
'Get first file boundry positions.
lngCurrentBegin = instr(1,strDataWhole,strBoundry)
lngCurrentEnd = instr(lngCurrentBegin + 1,strDataWhole,strBoundry) - 1
'*******************************************
do while lngCurrentEnd > 0
'Get the data between current boundry and remove it from the whole.
strData = mid(strDataWhole,lngCurrentBegin, lngCurrentEnd - lngCurrentBegin)
strDataWhole = replace(strDataWhole,strData,"")
'Get the full path of the current file.
lngBeginFileName = instr(1,strdata,"filename=") + 10
lngEndFileName = instr(lngBeginFileName,strData,chr(34))
'Make sure they selected at least one file.
if lngBeginFileName = lngEndFileName and lngNumberUploaded = 0 then
Response.Write " The following error occured. "
Response.Write "You must select at least one file to upload"
Response.Write " Hit the back button, make the needed corrections and resubmit your information."
Response.Write " "
Response.End
end if
'There could be one or more empty file boxes.
if lngBeginFileName <> lngEndFileName then
strFilename = mid(strData,lngBeginFileName,lngEndFileName - lngBeginFileName)
'Loose the path information and keep just the file name.
tmpLng = instr(1,strFilename,"\")
do while tmpLng > 0
PrevPos = tmpLng
tmpLng = instr(PrevPos + 1,strFilename,"\")
loop
FileName = right(strFilename,len(strFileName) - PrevPos)
este_folder_variable = "\archivos-subidos\" 'este es un folder abajo de la pagina actual
FileName = cambiar_nombre(Filename,este_folder_variable,caracteres_a_agregar) 'aqui es donde se le cambia el nombre al archivo
' y se regresa con la ruta ya dentro de este_folder_variable
Filename2 = Filename
tmpLng = instr(1,Filename2,"\") ' ahora obtendres solo el nombre del archivo originado
do while tmpLng > 0 ' esto es solo es para hacer el link en la pagina
PrevPos = tmpLng ' asi que puedes borrar esta parte
tmpLng = instr(PrevPos + 1,FileName2,"\")
loop
FileName3 = right(FileName2,len(FileName2) - PrevPos)
este_folder_variable_inverso = "archivos-subidos/"
'Get the begining position of the file data sent.
'if the file type is registered with the browser then there will be a Content-Type
lngCT = instr(1,strData,"Content-Type:")
if lngCT > 0 then
lngBeginPos = instr(lngCT,strData,chr(13) & chr(10)) + 4
else
lngBeginPos = lngEndFileName
end if
'Get the ending position of the file data sent.
lngEndPos = len(strData)
'Calculate the file size.
lngDataLenth = lngEndPos - lngBeginPos
tamano = lngDatalenth
If tamano
Da un click aqui para que veas el archivo que subiste. Con: <%=lngDatalenth%> Bytes
<%
'Get the file data
strFileData = mid(strData,lngBeginPos,lngDataLenth)
'Create the file.
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile(FileName, ForWriting, True)
f.Write strFileData
set f = nothing
set fso = nothing
lngNumberUploaded = lngNumberUploaded + 1
'Get then next boundry postitions if any.
Else
Response.write "El archivo es demasiado grande (mas de 5000000 bytes ) y no sera subido..."
End if
End if
lngCurrentBegin = instr(1,strDataWhole,strBoundry)
lngCurrentEnd = instr(lngCurrentBegin + 1,strDataWhole,strBoundry) - 1
loop
Response.Write "File(s) Uploaded "
Response.Write lngNumberUploaded & " files have been uploaded. "
Response.Write " "
End select
%>
2.Script
en ASP que hace la cuenta de las veces que se hace click (po fale).
<%
' Declare our vaiables
Dim objFSO, objCountFile ' object vars for FSO and File
Dim strCountFileName ' filename of count text file
Dim iCount ' count variable
Dim bUseImages ' boolean whether or not to use images
Dim I ' standard looping var
' Determine whether we use images or plain text
' You could just set this to True or False instead
bUseImages = CBool(Request.QueryString("images"))
' Compute our count file's filename
' This is based on the file from which you call count.asp
' It basically takes that name and appends a .cnt so I don't
' accidently overwrite any files. If for some reason you have
' a file named script_name.asp.cnt then change this or watch out!
strCountFileName = Server.MapPath(Request.ServerVariables("SCRIPT_NAME") & ".cnt")
' Create FileSystemObject to deal with file access
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
' Open the file as a text stream (1 = ForReading, True = Create)
Set objCountFile = objFSO.OpenTextFile(strCountFileName, 1, True)
' Read the current count from the file
If Not objCountFile.AtEndOfStream Then
' Set value to contents of the file
iCount = CLng(objCountFile.ReadAll)
Else
' If no file exists or it's empty start at 0
iCount = 0
End If
' Close the file and destroy the object
objCountFile.Close
Set objCountFile = Nothing
' Increment the count
iCount = iCount + 1
' Overwrite existing file and get a text stream to new one
Set objCountFile = objFSO.CreateTextFile(strCountFileName, True)
' Write updated count
objCountFile.Write iCount
' Close the file and destroy the object
objCountFile.Close
Set objCountFile = Nothing
' Destroy the FSO object
Set objFSO = Nothing
' We're all done with the hard part
' All that's left is to display the results
If bUseImages Then
' Loop through the count integer showing each digit
' You can grab the images one at a time or get the zip
' http://www.asp101.com/samples/download/counter_imgs.zip
For I = 1 to Len(iCount)
' Output the IMG tag using the right digit
Response.Write " "
Next 'I
Else
' No image wanted just show the variable
Response.Write iCount
End If
%>
Bueno
shavalotes, de momento vale, que ya son un huevo.