Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
homakov.github.com/index.html at master · xceptioncode/homakov.github.com · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
xceptioncode
homakov.github.com
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
homakov.github.com
/
index.html
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
221 lines (186 loc) · 5.79 KB
master
Breadcrumbs
homakov.github.com
/
index.html
Copy path
Top
File metadata and controls
Code
Blame
221 lines (186 loc) · 5.79 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<
a
href
=
//egorhomakov.com
>
Egor Homakov
</
a
>
| Stuff:
<
a
href
="
4sqlet.html
"
>
4sq app
</
a
>
<
a
href
="
redmine.html
"
>
Redmine JS leaking
</
a
>
<
a
href
="
anysquare.html
"
>
Clickjacking extractor
</
a
>
<
a
href
="
stealpass.html
"
>
Steal pass with XSS demo
</
a
>
<
hr
>
<
table
>
<
tr
>
<
td
valign
=
top
width
="
400px
"
>
CSRF Tool (
<
a
href
="
http://homakov.blogspot.ru/2013/05/csrf-tool.html
"
>
How it works
</
a
>
)
<
input
onclick
="
switch_auto()
"
type
="
checkbox
"
id
="
c1
"
>
<
label
for
="
c1
"
>
Auto-submit
</
label
>
<
input
onclick
="
switch_base()
"
type
="
checkbox
"
id
="
c2
"
>
<
label
for
="
c2
"
>
Base64 URL
</
label
>
<
textarea
rows
="
6
"
cols
="
100
"
id
="
curl
"
>
curl "http://homakov.blogspot.ru/2013/04/consulting.html" -H "version: HTTP/1.1" --data "key1=val&csrf_token=123qwe&hash[lol]=123"
</
textarea
>
<
div
id
="
form
"
>
</
div
>
</
td
>
<
td
>
<
iframe
id
="
postme
"
seamless
style
="
width:600px;height:500px;
"
src
="
data:,i am target iframe
"
>
</
iframe
>
</
td
>
</
tr
>
</
table
>
<
script
>
var
match_re
=
'(?:\'|")([^"\']+)(?:\'|")'
;
var
url_re
=
new
RegExp
(
'curl '
+
match_re
)
;
var
headers_re
=
new
RegExp
(
'-H '
+
match_re
)
;
var
data_re
=
new
RegExp
(
'--data '
+
match_re
)
;
var
form_obj
=
{
}
;
var
base_enc
=
false
;
function
parse_data
(
data
)
{
var
res
=
{
}
;
var
vars
=
data
.
split
(
'&'
)
;
for
(
var
i
=
0
;
i
<
vars
.
length
;
i
++
)
{
if
(
vars
[
i
]
.
length
)
{
var
pair
=
vars
[
i
]
.
split
(
'='
)
;
res
[
decodeURIComponent
(
pair
[
0
]
)
]
=
decodeURIComponent
(
pair
[
1
]
||
''
)
;
}
}
return
res
;
}
function
dump_data
(
data
)
{
var
res
=
''
;
for
(
var
k
in
data
)
{
res
+=
encodeURIComponent
(
k
)
+
'='
+
encodeURIComponent
(
data
[
k
]
)
+
'&'
;
}
return
res
;
}
function
submit_to
(
to
)
{
genform
.
target
=
to
;
genform
.
submit
(
)
;
return
false
;
}
function
no_ref
(
)
{
/*
data: urls omit referers, i have a blogpost on this
*/
postme
.
location
=
'data:text/html,'
+
get_html
(
)
;
}
function
switch_method
(
)
{
var
swap
=
(
form_obj
.
method
==
'GET'
)
?
'POST'
:
'GET'
form_obj
.
method
=
swap
;
update_form
(
)
;
}
function
switch_url
(
url
)
{
form_obj
.
url
=
url
;
update_form
(
)
;
}
function
switch_auto
(
)
{
form_obj
.
autosubmit
=
!
form_obj
.
autosubmit
;
update_form
(
)
;
}
function
switch_base
(
)
{
base_enc
=
!
base_enc
;
dump_hash
(
)
;
}
function
get_inputs
(
)
{
return
genform
.
getElementsByTagName
(
'input'
)
;
}
function
get_html
(
)
{
return
generate_form
(
form_obj
,
false
)
+
'<script>genform.submit()<'
+
'/script>'
;
}
function
generate_form
(
obj
,
visible
)
{
var
inputs
=
''
;
if
(
obj
.
data
)
{
var
pairs
=
parse_data
(
obj
.
data
)
;
for
(
var
k
in
pairs
)
{
if
(
visible
)
{
inputs
+=
'<tr><td>'
+
esc
(
k
)
+
' </td><td><input onchange="update_fields();" size=100 name="'
+
esc
(
k
)
+
'" value="'
+
esc
(
pairs
[
k
]
)
+
'"><a href="javascript:void(0)" onclick="this.parentNode.parentNode.remove();update_fields();">x</a></td></tr>'
;
}
else
{
inputs
+=
'<input type="hidden" name="'
+
esc
(
k
)
+
'" value="'
+
esc
(
pairs
[
k
]
)
+
'">'
;
}
}
if
(
visible
)
inputs
=
'<table>'
+
inputs
+
'</table>'
;
}
var
outform
=
'<form id="genform" action="'
+
esc
(
obj
.
url
)
+
'" method="'
+
obj
.
method
+
'">'
+
inputs
+
'</form>'
;
if
(
visible
)
{
var
out
=
'<a id="cur_method" title="Switch?" href="javascript:switch_method()">'
+
obj
.
method
+
'</a> <input size=100 value="'
+
esc
(
obj
.
url
)
+
'" onchange="switch_url(this.value);"><br>'
;
out
+=
'<input type="submit" onclick="return submit_to(\'_blank\')" value="New window"><input type="submit" onclick="return submit_to(\'_top\')" value="This window"><input type="submit" onclick="return submit_to(\'postme\')" value="Iframe"><input type="submit" onclick="return no_ref();" value="No Referrer"> | <input type="submit" value="HTML" onclick="postme.location=(\'data:,\'+get_html())">'
;
out
+=
'<div><input id="new_name" placeholder="name"> = <input id="new_value" placeholder="value"> <a href="javascript:update_fields(1);">add<a></div>'
;
out
+=
'<div>'
+
outform
+
'</div>'
;
out
=
'<div class="yelo">'
+
out
+
'</div>'
;
return
out
;
}
else
{
// hidden form
return
outform
;
}
}
var
HTML
=
{
chars
:
{
'&'
:
'&'
,
'<'
:
'<'
,
'>'
:
'>'
,
'"'
:
'"'
,
"'"
:
'''
}
,
escape
:
function
(
i
)
{
return
i
.
replace
(
HTML
.
re
,
function
(
m
)
{
return
HTML
.
chars
[
m
]
;
}
)
}
}
HTML
.
re
=
new
RegExp
(
"("
+
Object
.
keys
(
HTML
.
chars
)
.
join
(
'|'
)
+
')'
,
'g'
)
;
var
esc
=
HTML
.
escape
;
function
parse_curl
(
)
{
var
input
=
curl
.
value
;
form_obj
=
{
url
:
input
.
match
(
url_re
)
[
1
]
,
autosubmit
:
false
,
target
:
'_top'
}
if
(
data
=
input
.
match
(
data_re
)
)
{
form_obj
.
data
=
data
[
1
]
;
form_obj
.
method
=
'POST'
;
}
else
{
form_obj
.
method
=
'GET'
;
}
update_form
(
)
;
}
function
dump_hash
(
)
{
var
str
=
JSON
.
stringify
(
form_obj
)
;
location
.
hash
=
base_enc
?
btoa
(
str
)
:
str
;
}
function
update_fields
(
new_pair
)
{
var
inputs
=
get_inputs
(
)
;
var
vals
=
{
}
for
(
var
k
=
0
;
k
<
inputs
.
length
;
k
++
)
{
vals
[
inputs
[
k
]
.
name
]
=
inputs
[
k
]
.
value
;
}
if
(
new_pair
)
vals
[
new_name
.
value
]
=
new_value
.
value
;
form_obj
.
data
=
dump_data
(
vals
)
;
update_form
(
)
;
}
function
update_form
(
)
{
form
.
innerHTML
=
generate_form
(
form_obj
,
true
)
;
new_value
.
onkeydown
=
function
(
event
)
{
if
(
event
.
keyCode
==
13
)
{
update_fields
(
1
)
;
}
}
dump_hash
(
)
;
}
curl
.
onchange
=
parse_curl
;
window
.
onload
=
function
(
)
{
if
(
location
.
hash
)
{
//lets load CSRF template
curl
.
value
=
''
;
var
str
=
location
.
hash
.
substr
(
1
)
;
if
(
str
[
0
]
!=
'{'
)
{
base_enc
=
true
;
str
=
atob
(
str
)
;
c2
.
checked
=
true
;
}
form_obj
=
JSON
.
parse
(
str
)
;
// shame on you, asintsov and cyberpank!
if
(
form_obj
.
url
.
substr
(
0
,
4
)
!=
'http'
)
form_obj
.
url
=
'http://yo.yo'
;
if
(
[
'POST'
,
'GET'
]
.
indexOf
(
form_obj
.
method
)
==
-
1
)
form_obj
.
method
=
'POST'
;
// if autosubmit it should be hidden i guess
form
.
innerHTML
=
generate_form
(
form_obj
,
!
form_obj
.
autosubmit
)
;
if
(
form_obj
.
autosubmit
)
{
c1
.
checked
=
true
;
submit_to
(
form_obj
.
target
)
;
}
}
else
{
//demo
parse_curl
(
)
;
}
}
</
script
>
<
style
>
.
yelo
{
background-color
:
yellow;
}
</
style
>
You can’t perform that action at this time.