IP Spoofing for Load Testing on JMeter
Hi Fellow Readers,
In one of my projects I found some need to create a set of IP addresses (rather spoofed IP addresses) other than my own, because the server restricted the incoming request from same IP address. This happened as I was trying to run a load test on the server for multiple users.
Googling all day long helped me accumulate all commands needed to create a piece of small-yet-useful script to do all that I want. Off-course like me, one may fall into the same use-case. So, if you fell low doing so own your own I am there at your service
I have hosted, this script on my github for reference to the commands you can use in the terminal, If you want to dig into what all commands I used. But if in hurry and need of immediate solution. Please follow the Instructions below -
Step 1 : Copy this url - https://raw.githubusercontent.com/PranjalGupta3105/Important_batch_scripts/master/Testing/IPSpoofer.sh onto your clipboard
Step 2 : Open the Terminal and in the shell, add curl -OL . Now paste the link just copied after that.
Step 3 : Please Enter and wait for a while.
Step 4 : Check the file must have been downloaded. Use ls to check the same.
Step 5 : Time to Run the script. Use the command bash IPSpoofer.sh
Step 6 : The script would as you for you root password and number of IP addresses you want to create.
Step 7 : Once supplied you get a file as "SpoofedIPs.csv" with the list of all IP addresses created. You can use this file to directly import in JMeter for IP addresses.
Disclaimer : This Script is tested and intended for use on ubuntu. May need some changes in other linux destros. Please do not try this on Windows on MacOS.
Hope this helps you some day and save you time. Please put-in your comments, will be happy to help in case you face any issues.
Comments
Post a Comment