Advertisement
DOGGYWOOF

Untitled

Jan 29th, 2025 (edited)
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. -- Ask for the server ID and save it to .domaincontrollerID
  2. print("Enter the server ID:")
  3. local serverID = read()
  4.  
  5. -- Save the server ID in .domaincontrollerID
  6. local file = fs.open(".domaincontrollerID", "w")
  7. file.write(serverID)
  8. file.close()
  9.  
  10. -- Create the domain services enabled file
  11. local domainServicesPath = "/disk/config/domain/"
  12. if not fs.exists(domainServicesPath) then
  13. fs.makeDir(domainServicesPath)
  14. end
  15.  
  16. -- Create the file
  17. file = fs.open(domainServicesPath .. "DomainServiceEnabled.cfg", "w")
  18. file.write("Domain Services Enabled")
  19. file.close()
  20.  
  21. -- Download the file from Pastebin
  22. local pastebinURL = "https://pastebin.com/raw/SRAQQDuJ"
  23. local response = http.get(pastebinURL)
  24. if response then
  25. local data = response.readAll()
  26. local dcPath = "dc"
  27.  
  28. -- Save the downloaded file as dc.lua
  29. file = fs.open(dcPath, "w")
  30. file.write(data)
  31. file.close()
  32.  
  33. print("Domain controller setup complete!")
  34. else
  35. print("Failed to download the dc file from Pastebin.")
  36. end
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement