MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / _mark_fail

Function _mark_fail

Scripts/ButSystem.py:10212–10225  ·  view source on GitHub ↗

Record a failed login/2FA attempt by IP and, when known, by username.

(ip: str, username: str = "")

Source from the content-addressed store, hash-verified

10210 }
10211
10212 const pTop = landmarks[10], pBottom = landmarks[152], pLeft = landmarks[234], pRight = landmarks[454];
10213 const faceHeight = calcDist(pTop, pBottom); const faceWidth = calcDist(pLeft, pRight);
10214 const roll = -calcAngle(landmarks[33], landmarks[263]);
10215 const noseOffsetX = ((landmarks[1].x - pLeft.x) / (pRight.x - pLeft.x)) - 0.5;
10216 const noseOffsetY = ((landmarks[1].y - pTop.y) / (pBottom.y - pTop.y)) - 0.5;
10217 const yaw = noseOffsetX * 100; const pitch = noseOffsetY * 100;
10218 const jawWidth = calcDist(landmarks[132], landmarks[361]) / faceWidth;
10219 const noseWidth = calcDist(landmarks[129], landmarks[358]) / faceWidth;
10220 let shapeStr = (faceHeight / faceWidth > 1.35) ? (I18N.long || 'LONG') : ((faceHeight / faceWidth < 1.25) ? (I18N.round || 'ROUND') : (I18N.oval || 'OVAL'));
10221 let jawStr = (jawWidth > 0.8) ? (I18N.broad || 'BROAD') : (I18N.narrow || 'NARROW');
10222 const leftEyeOpen = calcDist(landmarks[159], landmarks[145]) / faceHeight * 100;
10223 const rightEyeOpen = calcDist(landmarks[386], landmarks[374]) / faceHeight * 100;
10224 const eyeSpacing = calcDist(landmarks[159], landmarks[386]) / faceWidth;
10225 let eyeSetStr = (eyeSpacing > 0.44) ? (I18N.wide || 'WIDE') : ((eyeSpacing < 0.4) ? (I18N.close || 'CLOSE') : (I18N.avg || 'AVG'));
10226 let gaze = I18N.center || 'CENTER';
10227 if (landmarks[468]) {
10228 const irisL_offset = (landmarks[468].x - landmarks[33].x) / (landmarks[133].x - landmarks[33].x);

Callers 2

loginFunction · 0.70
two_factorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected