07-09-2010, 02:11 PM
sip2...
ane udah dapet Fungsi itu...
ada yg mAu ??
neh aNe share..
ini penggunaannya :
ane menggunkana Fungsi ini :
toLong di tambah kalo salah..
masih ucup aLias Cupu sayah...
ane udah dapet Fungsi itu...
ada yg mAu ??
neh aNe share..
ini penggunaannya :
Code:
Function heur(Path As String)
On Error Resume Next
Dim getsize As Long: Dim mal As String
If JHelpAX1.HeurS(Path, 300000, "WSCRIPT.SHELL") = True Then mal = "Suspected VBSMalScript"
If JHelpAX1.HeurS(Path, 300000, "REGWRITE") = True Then mal = "Suspected VBSMalScript"
If JHelpAX1.HeurS(Path, 300000, "REG DEL") = True Then mal = "Suspected BATMalScript"
If UCase(Right(Path, 4)) = ".EXE" Or UCase(Right(Path, 4)) = ".DLL" Or UCase(Right(Path, 4)) = ".COM" Then
If JHelpAX1.HeurB(Path, "MZ") = True Then mal = "Suspected PE File"
End If
If mal = "" Then GoSub done
Set l = ListView2.ListItems.Add(, , mal)
getsize = FileLen(Path)
With l
.SubItems(1) = Path
.SubItems(2) = getsize
.Checked = False
End With
done:
End Functionane menggunkana Fungsi ini :
Code:
Public Function HeurS(Path As String, ExceptionSize As Long, Script As String) As Boolean
On Error Resume Next
Dim b As String: Dim c As String
If FileLen(Path) > ExceptionSize Then Exit Function
Open Path For Input As #1
Do While Not (EOF(1))
Input #1, b
c = c + b
Loop
Close #1
If InStr(UCase(c), Script) > 0 Then GoSub MalScript
GoSub no
MalScript:
HeurS = True
GoSub done
no:
HeurS = False
done:
End FunctiontoLong di tambah kalo salah..
masih ucup aLias Cupu sayah...
"Lakukan apa yang kalian inginkan, dapatkan apa yang kalian lakukan"



