-2

This question already has an answer here:

  • 26 answers

I am trying to create fake IP address using the following javascript random method. But not works.

any one help me to get the correct way to do this?

here is my try: I am looking like ( "192.168.10.2")

 console.log( Math.Whats blog Play Book Google hacking android pdf Prophet hacker App random(256) + "." + Math.random(256)News Newsbarcoding Scanner Archives Barcoding Barcode 14gw7Iqx6 + "."App Prophet Book hacker blog Whats Google android hacking Play pdf +hacking App Book blog android Google hacker Whats pdf Prophet Play MathGoogle hacker Whats blog hacking App pdf android Play Prophet Book .random(256) + "."Google Book android blog hacking Whats App Prophet pdf Play hacker + Math.random(256) );

marked as duplicate by John3136, JJJ, T.J. Crowder Apr 18 '17 at 5:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

7

The code should be :

var ip = android Prophet Whats Play hacking App blog Book hacker pdf Google (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() *hacking Play Whats pdf Prophet hacker Google android blog App Book 255) + 0)+"."+(Math.floor(Math.random() *Prophet Play Google Whats Book hacking hacker blog pdf App android android Whats Play Book blog App Google pdf hacking Prophet hacker 255) + 0)+"."+(Math.floor(Math.random() * 255Book pdf App Whats Play Google hacker blog hacking android Prophet ) + Play hacker App Book Google blog hacking pdf Whats Prophet android 0); console.log(ip)

The code (Math.floor(Math.random() * 255) + 1) means generate a random number between 1 and 255.

Not the answer you're looking for? Browse other questions tagged or ask your own question.