On GitHub, D4Vinci/PasteJacker has picked up 403 stars, Python. Hacking systems with the automation of PasteJacking attacks.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
The main purpose of the tool is automating (PasteJacking/Clipboard poisoning/whatever you name it) attack with collecting all the known tricks used in this attack in one place and one automated job as after searching I found there's no tool doing this job the right way :smile:
Now because this attack depends on what the user will paste, I implemented the Metasploit web-delivery module's idea into the tool so when the user pastes into the terminal, you gets meterpreter session on his device :smile:
Watch tutorial on youtube
What's PasteJacking ?
In short, Pastejacking is a method that malicious websites employ to take control of your computers’ clipboard and change its content to something harmful without your knowledge. From The Windows club definition
So here what I did is automating the original attack and adding two other tricks to fool the user, using HTML and CSS Will talk about it then added meterpreter sessions as I said before.
A simple scenario to make things clear:
The target opens an HTML page served by the tool and this page has anything that makes the user wants to copy from it and paste into the terminal. Ex: package installation instructions
Target copies anything from the page then in the background it gets replaced quickly with our liner.
The user pastes into the terminal and before he notices that the line he copied has been changed :
The line gets executed by itself in the background (Without pressing enter)
The terminal gets cleared.
The user sees the terminal is usable again.
You already got your meterpreter session by this time.
All of that happened in less than second and maybe the user thinks this is a bad program and he won't install it :smile:
This tool uses 3 methods to trick user into copying our payload instead of the command he copies:
Using javascript to hook the copy event and replace copied data.
Advantages :
Anything the user copies in the page will be replaced with our line.
Command executed by itself once target paste it without pressing enter.
Disadvantages :
Requires Javascript to be enabled on the target browser.
Using span style attribute to hide our lines by overwriting.
Advantages :
Doesn't require javascript to be enabled.
Works on all browsers.
Disadvantages :
Target must select all the text in the page or the first two words to ensure that he copies our hidden malicious lines.
Using span style again but this time to make our text transparent and non-markable.
Advantages :
Doesn't require javascript to be enabled.
Disadvantages :
Target must select all the text in the page to ensure that he copies our hidden malicious lines.
Not working on opera and chrome.
What's the payload user copies ?
PasteJacker gives you the option to do one of this things:
Generate a msfvenom backdoor on our machine and the liner target gonna copy will download the backdoor on the its machine, through wget or certutil depends on the OS, then executes it on the background without printing anything to the terminal.
Serve a liner that gets you a reverse netcat connection on the target machine running in the background of course.
Serve your custom liner like Metasploit web-delivery payload with adding some touches to hide any possible output.
Screenshots (Not updated)
Installing and requirements
Python 3 and setuptools module.
Linux or Unix-based system (Currently tested only on Kali Linux rolling and Ubuntu 16.04).
Third-party requirements like msfvenom but only if you are gonna use the msfvenom option, of course.
Third-party library ncurses-dev for Ubuntu (Thanks for @mhaskar).
The most recent commit recorded on D4Vinci/PasteJacker was 2.0 years ago, based on the GitHub push timestamp. The repository has 84 forks — one of the better signals of community interest.
How many stars does D4Vinci/PasteJacker have?
D4Vinci/PasteJacker has 403 GitHub stars — refresh the page for the live number, or check github.com/D4Vinci/PasteJacker. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is D4Vinci/PasteJacker open source?
TopGit's metadata for D4Vinci/PasteJacker does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What is D4Vinci/PasteJacker?
D4Vinci/PasteJacker (D4Vinci/PasteJacker) is a Python project on GitHub. From the project's own README: Hacking systems with the automation of PasteJacking attacks.
What language is D4Vinci/PasteJacker written in?
D4Vinci/PasteJacker is written primarily in Python. GitHub's language field is based on the largest share of bytes in the default branch.
Where do I read more about D4Vinci/PasteJacker?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/D4Vinci/PasteJacker is the definitive source.
Read full README in the tab above.
Is PasteJacker worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of PasteJacker.