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
Copy file name to clipboardExpand all lines: README.md
+98-68Lines changed: 98 additions & 68 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,47 @@
1
-
# XSS-PDF Generator
1
+
# XSS-PDF Generator - Advanced PDF Sandbox Escape Tool
2
2
3
-
An advanced tool for generating PDF files containing various XSS (Cross-Site Scripting) payloads for security testing and penetration testing purposes.
3
+
An advanced tool for generating PDF files with sophisticated JavaScript payloads designed to escape PDF sandbox environments. This tool creates PDF files containing various sandbox escape techniques for security testing and penetration testing purposes.
4
4
5
5
## ⚠️ Legal Disclaimer
6
6
7
7
This tool is designed for legitimate security testing, educational purposes, and authorized penetration testing only. Users are responsible for ensuring they have proper authorization before testing any systems. Unauthorized use is prohibited and may be illegal.
8
8
9
+
## 🔒 PDF Sandbox Context
10
+
11
+
PDF files are typically rendered in sandboxed environments that restrict access to:
12
+
- Browser DOM APIs (document.cookie, XMLHttpRequest, etc.)
13
+
- File system access through standard web APIs
14
+
- Direct network communication through browser APIs
15
+
16
+
This tool implements **PDF-specific JavaScript APIs** and **sandbox escape techniques** to overcome these limitations.
17
+
9
18
## 🚀 Features
10
19
11
-
-**10 Different XSS Payload Types**: Comprehensive collection of XSS attack vectors
12
-
-**URL Integration**: Support for data exfiltration to external URLs
13
-
-**Custom Payloads**: Ability to inject custom JavaScript code
20
+
-**12 Different PDF Sandbox Escape Types**: Comprehensive collection of PDF-specific attack vectors
21
+
-**PDF-Specific JavaScript APIs**: Uses proper PDF JavaScript context instead of browser APIs
22
+
-**Multiple Sandbox Escape Techniques**: URL launching, form submission, dialog manipulation
23
+
-**URL Integration**: Support for data exfiltration to external URLs via PDF escape methods
24
+
-**Custom Payloads**: Ability to inject custom PDF JavaScript code
25
+
-**Enhanced PDF Structure**: Sophisticated PDF structure for better escape potential
14
26
-**Multiple Output Formats**: PDF and HTML file generation
15
27
-**Timestamped Files**: Automatic file naming with timestamps
16
-
-**Type-Specific Generation**: Generate specific payload types or all at once
17
-
-**Backward Compatibility**: Maintains compatibility with legacy usage
0 commit comments