TCP Brut Force
How do I make an tcp brut force?
What is a tcp brut force? How do you make a tcp brut force? This script and codes were developed by Renaud Tertrais on 08 October 2022, Saturday.
TCP Brut Force - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>TCP Brut Force</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script src='https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.8/p5.js'></script> <script src="js/index.js"></script>
</body>
</html>
TCP Brut Force - Script Codes CSS Codes
body { margin: 0; padding: 0; position: absolute; top: 0; bottom: 0; left: 0; right: 0;
}
TCP Brut Force - Script Codes JS Codes
'use strict';
console.clear();
var pointsLength = 4;
var fullWidth = window.innerWidth;
var fullHeight = window.innerHeight;
var fps = 10;
var points = undefined, shorterPath = undefined, shorterDist = undefined, nextIndexes = undefined, permutation = undefined, permutationsDone = undefined, permutationsTotal = undefined;
function setup() { createCanvas(fullWidth, fullHeight); frameRate(fps); points = createPoints(pointsLength, fullWidth, fullHeight - 30, 20); var _initPermutation = initPermutation(points); nextIndexes = _initPermutation[0]; permutation = _initPermutation[1]; permutationsDone = 0; permutationsTotal = factorial(pointsLength); shorterPath = permutation; shorterDist = Infinity;
}
function draw() { if (permutation) { var d = distPath(permutation); if (d < shorterDist) { shorterDist = d; shorterPath = permutation; } } background(0); drawPath(shorterPath, 6, '#080'); if (permutation) { drawPath(permutation, 2, '#FFF'); } drawPoints(points, 16, '#FFF'); drawProgressBar(permutationsDone, permutationsTotal, '#FFF'); if (nextIndexes) { permutationsDone++; var _nextPermutation = nextPermutation(nextIndexes, points); nextIndexes = _nextPermutation[0]; permutation = _nextPermutation[1]; }
}
var drawProgressBar = function drawProgressBar(current, total, color) { var percent = floor(current / total * 100); var totalTime = formatTime(Math.round(total / fps * 100)); var currentTime = formatTime(Math.round(current / fps * 100)); textSize(10); noStroke(); fill(color); textAlign(CENTER); text(percent + '%', fullWidth / 2, height - 25); textAlign(RIGHT); text(totalTime, fullWidth - 10, height - 25); textAlign(LEFT); text(currentTime, 10, height - 25); rect(10, fullHeight - 20, (fullWidth - 20) * current / total, 7); noFill(); stroke(color); strokeWeight(1); rect(10, fullHeight - 20, fullWidth - 20, 7);
};
var drawPath = function drawPath(points, w, color) { noFill(); stroke(color); strokeWeight(w); beginShape(); points.forEach(function (_ref) { var x = _ref.x; var y = _ref.y; return vertex(x, y); }); endShape();
};
var drawPoints = function drawPoints(points, r, color) { noStroke(); textSize(10); textAlign(CENTER); points.forEach(function (_ref2) { var x = _ref2.x; var y = _ref2.y; var i = _ref2.i; fill(color); ellipse(x, y, r); fill(0); text(i, x, y + 3); });
};
var distPath = function distPath(points) { return points.reduce(function (acc, _ref3, i) { var x = _ref3.x; var y = _ref3.y; return i < points.length - 1 ? acc + dist(x, y, points[i + 1].x, points[i + 1].y) : acc; }, 0);
};
var createPoints = function createPoints(n, width, height, margin) { return Array.from({ length: n }).map(function (_, i) { return createPoint(i, width, height, margin); });
};
var createPoint = function createPoint(i, width, height, margin) { return { i: i, x: random(width - margin * 2) + margin, y: random(height - margin * 2) + margin };
};
var getX = function getX(xs) { return xs.reduce(function (x, v, i) { return v < xs[i + 1] ? i : x; }, -1);
};
var getY = function getY(x, xs) { return xs.reduce(function (y, v, i) { return xs[x] < v ? i : y; }, null);
};
var swap = function swap(i, j, xs) { var temp = xs[i]; xs[i] = xs[j]; xs[j] = temp;
};
var nextPermutation = function nextPermutation(nextIndexes, array) { var x = getX(nextIndexes); if (x < 0) return [null, null]; var y = getY(x, nextIndexes); swap(x, y, nextIndexes); console.log(nextIndexes, nextIndexes.map(function (i) { return array[i].i; })); return [nextIndexes.slice(0, x + 1).concat(nextIndexes.slice(x + 1).reverse()), nextIndexes.map(function (i) { return array[i]; })];
};
var initPermutation = function initPermutation(arr) { return [arr.map(function (_, i) { return i; }), arr];
};
var factorial = function factorial(n) { return n === 0 ? 1 : n * factorial(n - 1);
};
var formatTime = function formatTime(ms) { var timeInSeconds = Math.floor(ms / 100); var y = Math.floor(timeInSeconds / (3600 * 24 * 365)); if (y) { return y + ' years'; } var d = Math.floor(timeInSeconds / (3600 * 24)); if (d) { return d + ' days'; } var h = Math.floor((timeInSeconds - d * 3600 * 24) / 3600); var m = Math.floor((timeInSeconds - d * 3600 * 24 - h * 3600) / 60); var s = timeInSeconds - d * 3600 * 24 - h * 3600 - m * 60; if (h) { return h + ':' + ('' + m).padStart(2, 0); } if (m) { return m + ':' + ('' + s).padStart(2, 0); } if (s) { return s + 's'; } return ms + 'ms';
};
Developer | Renaud Tertrais |
Username | renaudtertrais |
Uploaded | October 08, 2022 |
Rating | 3 |
Size | 4,629 Kb |
Views | 26,312 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Buttons wip... | 4,057 Kb |
Tiny CSS3 Round Breadcrumb | 2,921 Kb |
React Flat Gradient | 5,268 Kb |
Console | 3,320 Kb |
A Pen by Renaud Tertrais | 3,033 Kb |
Flat Blog layout in CSS3 | 4,111 Kb |
Images gallery with CSS3 transitions | 2,356 Kb |
TCP Brut Force | 4,629 Kb |
Flat CSS3 Breadcrumb | 3,093 Kb |
Flat CSS3 rating system | 2,752 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Mosaic transition effect between two photos using jQuery | Stathisg | 2,518 Kb |
Cofee and sugar | Tripack | 2,094 Kb |
Horizontal Navigation with Floats | Gymratpacks | 5,403 Kb |
Custom checkbox example | Capelo | 3,495 Kb |
Highbrow Basic HTML Lesson 8 | Kimlarocca | 2,094 Kb |
Vanilla JS - A toggleClass function | Woodwork | 2,532 Kb |
Bubble animation | Ftabor | 6,565 Kb |
Angular Route | Arun_v606 | 1,837 Kb |
Awesome textarea | Ayoungh | 1,977 Kb |
3D-box | Parthviroja | 2,346 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!