Advertisement
Xylitol

MBRLocker Builder v0.2 Generic serial retriever

Jul 25th, 2011
1,241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 'MBRLocker Builder v0.2 Generic serial retriever
  2. 'Add just one Textbox with name: Text1
  3. 'Then just Drop your infected MBR Dump
  4.  
  5. Option Explicit
  6. Dim XorKey, strSubstr, buffer, sHold, sText, sFileExtention, TotalChaine, Path, ipos, sOutput As String
  7. Dim iLocationOfString1, iLocationOfString2, iCompareStyle As Long
  8. Dim a, b, i As Integer
  9.  
  10. Private Sub Form_Load()
  11. Forme.OLEDropMode = 1  'Manual Ole Drop Mode
  12. End Sub
  13.  
  14. Private Sub Form_OLEDragDrop(Data As DataObject, _
  15.                               Effect As Long, _
  16.                               Button As Integer, _
  17.                               Shift As Integer, _
  18.                               X As Single, _
  19.                               Y As Single)
  20.   With Data
  21.   sText = ""
  22.     If .GetFormat(vbCFFiles) Then
  23.       If .Files.Count = 1 Then
  24.         'Only one filename was dragged.  Retrieve it.
  25.        Path = .Files(1)  'Note numeral 1.
  26.        'Pull text file data into our textbox.
  27.          Open Path For Input As #1
  28.             Do Until EOF(1)
  29.               Line Input #1, sHold
  30.               sText = sText & sHold & vbCrLf
  31.             Loop
  32.           Close #1
  33.           Text1.Text = sText
  34.       If .Files.Count > 1 Then
  35.       Exit Sub ' Dude, wtf are you doing here ?
  36.      End If
  37.     End If
  38.   End If
  39. End With
  40.  
  41. ipos = InStr(1, Text1, "EnTeR c0d3:") 'Check 1
  42. If ipos = "0" Then
  43. Text1.Text = "Error: This is not a MBR or it's not infected"
  44. Exit Sub
  45. Else
  46. ipos = InStr(1, Text1, "wExE") 'Check 2
  47. If ipos = "0" Then
  48. Text1.Text = "Error: This is not a MBR or it's not infected"
  49. Exit Sub
  50. Else
  51. TotalChaine = ""
  52. buffer = ""
  53. Text1 = funcParseStringFromString2String(Text1, "EnTeR c0d3:", "wExE") 'Parsing
  54. Text1 = Replace(Text1, " º€¹¸»Íê8Š‹}¬Š€ò", "") 'Remove useless shit (generic)
  55. XorKey = Left$(Text1, 1)      'XOR Key
  56. XorKey = Asc(XorKey) 'Get the Dec
  57. strSubstr = Left$(Text1, 15) 'Hardcoded remove
  58. Text1 = Replace(Text1, strSubstr, "") 'Remove hardcoded
  59. For a = 1 To Len(Text1)           'Let's loop until the end
  60. b = Asc(Mid(Text1, a, 1)) 'Grab one dec char
  61. TotalChaine = XorKey Xor b 'unxor it
  62. buffer = buffer & Chr(TotalChaine) 'make it char and add it to the final serial
  63. Next
  64. Text1 = buffer 'Final result
  65. End If
  66. End If
  67. End Sub
  68.  
  69. Function funcParseStringFromString2String(sSourceString, sString1 As String, sString2 As String, Optional fCaseCaseInsensitive As Boolean = False) As String
  70.  If fCaseCaseInsensitive Then
  71. iCompareStyle = vbTextCompare
  72.  Else
  73. iCompareStyle = vbBinaryCompare
  74.  End If
  75.  
  76.  sOutput = sSourceString
  77.  iLocationOfString1 = InStr(1, sOutput, sString1, iCompareStyle)
  78.  iLocationOfString2 = InStr(1, sOutput, sString2, iCompareStyle)
  79.  If iLocationOfString1 = 0 And iLocationOfString2 = 0 Then
  80. 'nothing found
  81. sOutput = ""
  82.  Else
  83. If Len(sString1) = 0 And Len(sString2) = 0 Then
  84.  'do nothing
  85. ElseIf Len(sString1) = 0 Then
  86.  If iLocationOfString2 <> 0 Then
  87. sOutput = Mid(sOutput, 1, iLocationOfString2 - 1)
  88.  End If
  89. ElseIf Len(sString2) = 0 Then
  90.  sOutput = Mid(sOutput, iLocationOfString1 + Len(sString1))
  91. Else
  92.  'cut off begining
  93. If iLocationOfString1 <> 0 Then
  94. sOutput = Mid(sOutput, iLocationOfString1 + Len(sString1))
  95.  End If
  96.  'take off the end part
  97. iLocationOfString2 = InStr(1, sOutput, sString2, iCompareStyle)
  98.  If iLocationOfString2 <> 0 Then
  99. sOutput = Mid(sOutput, 1, iLocationOfString2 - 1)
  100.  End If
  101. End If
  102.  End If
  103.  funcParseStringFromString2String = sOutput
  104. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement