List soal PWN untuk KSL Seleksi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.5 KiB

5 years ago
  1. #!/usr/local/bin/ruby
  2. def main
  3. puts "================================================================================================================================================================================================"
  4. puts "=============================================================================SELAMAT DATANG DI PORTAL RAHASIA==================================================================================="
  5. puts "================================================================================================================================================================================================"
  6. print "Masukan Kode Rahasia Agen: "
  7. code = gets.chomp
  8. if code == "KSL_SECRET_TEAM007" then
  9. puts "================================================================================================================================================================================================"
  10. puts "==========================================================Selamat datang agen KSL, ini adalah sesi control panel anda. Gunakan dengan bijak!===================================================="
  11. puts "================================================================================================================================================================================================"
  12. print "Enter Secret Command : "
  13. sc = gets.chomp
  14. system("#{sc}")
  15. else
  16. abort "Maaf Kode yang anda salah!"
  17. end
  18. end
  19. if __FILE__ == $0
  20. $stdout.sync = true
  21. $stdin.sync = true
  22. main
  23. end