Created
October 10, 2024 22:21
-
-
Save heysmmprovider/2123e90646982c6cf94a106a27dab20a to your computer and use it in GitHub Desktop.
IPV6 Proxy Address Generator For Free Instagram Followers
This file contains hidden or 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
| function getRandomIPv6Address(subnet) { | |
| if(!subnet.includes('::/29')) { | |
| subnet = subnet + '::/29'; | |
| } | |
| const [networkAddress, prefixLength] = subnet.split('/'); | |
| const prefix = parseInt(prefixLength, 10); | |
| const addressParts = networkAddress.split(':').map(hex => parseInt(hex, 16)); | |
| const hostBits = 128 - prefix; | |
| const randomParts = []; | |
| for (let i = 0; i < Math.floor(hostBits / 16); i++) { | |
| randomParts.push(Math.floor(Math.random() * 0x10000)); | |
| } | |
| for (let i = 0; i < randomParts.length; i++) { | |
| const partIndex = 7 - i; | |
| addressParts[partIndex] = (addressParts[partIndex] & 0xFFFF0000) | randomParts[i]; | |
| } | |
| const randomIp = addressParts.map(part => part.toString(16).padStart(4, '0')).join(':'); | |
| return randomIp; | |
| } | |
| // Example usage | |
| const detailedMessage = 'for detailed informations: https://heysmmprovider.com or https://heysmmreller.com'; | |
| const subnet = '2a10:f25::/29'; | |
| const generatedIpV6 = getRandomIPv6Address(subnet); | |
| console.log('Generated IPV6 Proxy:', generatedIpV6, detailedMessage); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment