Surviv.IO Aimbot, ESP & X-Ray

Aimbot and ESP for surviv.io. Locks the aim to the nearest player and shows lines between nearby players. Removes ceilings from buildings and let's you see inside them too.

  1. // ==UserScript==
  2. // @name Surviv.IO Aimbot, ESP & X-Ray
  3. // @namespace https://gf.qytechs.cn/en/users/662330-zertalious
  4. // @version 0.0.4
  5. // @description Aimbot and ESP for surviv.io. Locks the aim to the nearest player and shows lines between nearby players. Removes ceilings from buildings and let's you see inside them too.
  6. // @author Zertalious (Zert)
  7. // @match *://surviv.io/*
  8. // @match *://surviv2.io/*
  9. // @match *://2dbattleroyale.com/*
  10. // @match *://2dbattleroyale.org/*
  11. // @match *://piearesquared.info/*
  12. // @match *://thecircleisclosing.com/*
  13. // @match *://archimedesofsyracuse.info/*
  14. // @match *://secantsecant.com/*
  15. // @match *://parmainitiative.com/*
  16. // @match *://nevelskoygroup.com/*
  17. // @match *://kugahi.com/*
  18. // @match *://chandlertallowmd.com/*
  19. // @match *://ot38.club/*
  20. // @match *://kugaheavyindustry.com/*
  21. // @match *://drchandlertallow.com/*
  22. // @match *://rarepotato.com/*
  23. // @icon https://www.google.com/s2/favicons?domain=surviv.io
  24. // @grant none
  25. // @run-at document-start
  26. // @antifeature ads
  27. // ==/UserScript==
  28.  
  29. let espEnabled = true;
  30. let aimbotEnabled = true;
  31. let xrayEnabled = true;
  32.  
  33. Object.defineProperty( Object.prototype, 'textureCacheIds', {
  34. set( value ) {
  35.  
  36. this._textureCacheIds = value;
  37.  
  38. if ( Array.isArray( value ) ) {
  39.  
  40. const scope = this;
  41.  
  42. value.push = new Proxy( value.push, {
  43. apply( target, thisArgs, args ) {
  44.  
  45. if ( args[ 0 ].indexOf( 'ceiling' ) > - 1 ) {
  46.  
  47. Object.defineProperty( scope, 'valid', {
  48. set( value ) {
  49.  
  50. this._valid = value;
  51.  
  52. },
  53. get() {
  54.  
  55. return xrayEnabled ? false : this._valid;
  56.  
  57. }
  58. } );
  59.  
  60. }
  61.  
  62. return Reflect.apply( ...arguments );
  63.  
  64. }
  65. } );
  66.  
  67. }
  68.  
  69. },
  70. get() {
  71.  
  72. return this._textureCacheIds;
  73.  
  74. }
  75. } );
  76.  
  77. const params = {
  78. get() {
  79.  
  80. console.log( 'getting ctx', this );
  81.  
  82. return null;
  83.  
  84. }
  85. };
  86.  
  87. Object.defineProperty( window, 'WebGLRenderingContext', params );
  88. Object.defineProperty( window, 'WebGL2RenderingContext', params );
  89.  
  90. let ctx;
  91.  
  92. HTMLCanvasElement.prototype.getContext = new Proxy( HTMLCanvasElement.prototype.getContext, {
  93. apply( target, thisArgs, args ) {
  94.  
  95. const result = Reflect.apply( ...arguments );
  96.  
  97. if ( thisArgs.parentNode ) {
  98.  
  99. ctx = result;
  100.  
  101. }
  102.  
  103. return result;
  104.  
  105. }
  106. } );
  107.  
  108. const players = [];
  109.  
  110. let radius;
  111.  
  112. let mouseX = 0, mouseY = 0;
  113.  
  114. window.addEventListener( 'mousemove', function ( event ) {
  115.  
  116. if ( event.dispatchedByMe !== true ) {
  117.  
  118. mouseX = event.clientX;
  119. mouseY = event.clientY;
  120.  
  121. }
  122.  
  123. } );
  124.  
  125. window.addEventListener( 'keyup', function ( event ) {
  126.  
  127. switch ( String.fromCharCode( event.keyCode ) ) {
  128.  
  129. case 'N' : espEnabled = ! espEnabled; break;
  130. case 'B' : aimbotEnabled = ! aimbotEnabled; break;
  131. case 'H' : xrayEnabled = ! xrayEnabled; break;
  132.  
  133. }
  134.  
  135. } );
  136.  
  137. const Context2D = CanvasRenderingContext2D.prototype;
  138.  
  139. Context2D.drawImage = new Proxy( Context2D.drawImage, {
  140. apply( target, thisArgs, args ) {
  141.  
  142. if ( aimbotEnabled && args[ 0 ].src && args[ 0 ].src.indexOf( 'loadout' ) > - 1 && args[ 8 ] === 142 ) {
  143.  
  144. const { a, b, e, f } = thisArgs.getTransform();
  145.  
  146. radius = Math.hypot( a, b ) * args[ 8 ] + 10;
  147.  
  148. const centerX = thisArgs.canvas.width / 2;
  149. const centerY = thisArgs.canvas.height / 2;
  150.  
  151. if ( e !== centerX && f !== centerY ) {
  152.  
  153. players.push( { x: e, y: f } );
  154.  
  155. }
  156.  
  157. }
  158.  
  159. return Reflect.apply( ...arguments );
  160.  
  161. }
  162. } );
  163.  
  164. window.requestAnimationFrame = new Proxy( window.requestAnimationFrame, {
  165. apply( target, thisArgs, args ) {
  166.  
  167. args[ 0 ] = new Proxy( args[ 0 ], {
  168. apply( target, thisArgs, args ) {
  169.  
  170. players.length = 0;
  171.  
  172. Reflect.apply( ...arguments );
  173.  
  174. ctx.fillStyle = '#fff';
  175.  
  176. const array = [
  177. [ '[B] Aimbot', aimbotEnabled ],
  178. [ '[N] ESP', espEnabled ],
  179. [ '[H] X-Ray', xrayEnabled ]
  180. ];
  181.  
  182. const fontSize = 20;
  183.  
  184. ctx.textAlign = 'center';
  185. ctx.textBaseline = 'top';
  186.  
  187. ctx.font = 'bolder ' + fontSize + 'px monospace';
  188.  
  189. for ( let i = 0; i < array.length; i ++ ) {
  190.  
  191. const [ text, status ] = array[ i ];
  192.  
  193. ctx.globalAlpha = status ? 1 : 0.5;
  194.  
  195. ctx.fillText( text + ': ' + ( status ? 'ON' : 'OFF' ), ctx.canvas.width / 2, 10 + i * fontSize );
  196.  
  197. }
  198.  
  199. ctx.globalAlpha = 1;
  200.  
  201. if ( players.length === 0 ) {
  202.  
  203. return;
  204.  
  205. }
  206.  
  207. ctx.lineWidth = 5;
  208. ctx.strokeStyle = 'red';
  209.  
  210. if ( espEnabled ) {
  211.  
  212. const centerX = ctx.canvas.width / 2;
  213. const centerY = ctx.canvas.height / 2;
  214.  
  215. ctx.beginPath();
  216.  
  217. for ( let i = 0; i < players.length; i ++ ) {
  218.  
  219. const player = players[ i ];
  220.  
  221. ctx.moveTo( centerX, centerY );
  222.  
  223. ctx.lineTo( player.x, player.y );
  224.  
  225. }
  226.  
  227. ctx.stroke();
  228.  
  229. }
  230.  
  231. if ( aimbotEnabled ) {
  232.  
  233. let minDistance = Infinity;
  234. let targetPlayer;
  235.  
  236. for ( let i = 0; i < players.length; i ++ ) {
  237.  
  238. const player = players[ i ];
  239.  
  240. const distance = Math.hypot( player.x - mouseX, player.y - mouseY );
  241.  
  242. if ( distance < minDistance ) {
  243.  
  244. minDistance = distance;
  245. targetPlayer = player;
  246.  
  247. }
  248.  
  249. }
  250.  
  251. ctx.beginPath();
  252.  
  253. ctx.arc( targetPlayer.x, targetPlayer.y, radius, 0, Math.PI * 2 );
  254.  
  255. ctx.stroke();
  256.  
  257. window.dispatchEvent( new MouseEvent( 'mousemove', {
  258. clientX: targetPlayer.x,
  259. clientY: targetPlayer.y,
  260. dispatchedByMe: true
  261. } ) );
  262.  
  263. }
  264.  
  265. }
  266. } );
  267.  
  268. return Reflect.apply( ...arguments );
  269.  
  270. }
  271. } );
  272.  
  273. window.addEventListener( 'DOMContentLoaded', function () {
  274.  
  275. const value = parseInt( new URLSearchParams( window.location.search ).get( 'showAd' ), 16 );
  276.  
  277. const shouldShowAd = isNaN( value ) || Date.now() - value < 0 || Date.now() - value > 10 * 60 * 1000;
  278.  
  279. const el = document.createElement( 'div' );
  280.  
  281. el.innerHTML = `<style>
  282.  
  283. .my-dialog {
  284. position: absolute;
  285. left: 50%;
  286. top: 50%;
  287. padding: 20px;
  288. background: rgba(0, 0, 0, 0.9);
  289. box-shadow: 0 0 0 1000vw rgba(0, 0, 0, 0.5);
  290. border-radius: 5px;
  291. color: #fff;
  292. transform: translate(-50%, -50%);
  293. text-align: center;
  294. z-index: 999999;
  295. }
  296.  
  297. .my-dialog * {
  298. color: #fff;
  299. }
  300.  
  301. .my-close {
  302. position: absolute;
  303. right: 5px;
  304. top: 5px;
  305. width: 20px;
  306. height: 20px;
  307. opacity: 0.5;
  308. cursor: pointer;
  309. }
  310.  
  311. .my-close:before, .my-close:after {
  312. content: ' ';
  313. position: absolute;
  314. left: 50%;
  315. top: 50%;
  316. width: 100%;
  317. height: 20%;
  318. transform: translate(-50%, -50%) rotate(-45deg);
  319. background: #fff;
  320. }
  321.  
  322. .my-close:after {
  323. transform: translate(-50%, -50%) rotate(45deg);
  324. }
  325.  
  326. .my-close:hover {
  327. opacity: 1;
  328. }
  329.  
  330. </style>
  331. <div class="my-dialog">${shouldShowAd ? `<big>Loading ad...</big>` : `<div class="my-close" onclick="this.parentNode.style.display='none';"></div>
  332. <big style="font-size: 2em;">Aimbot, ESP & X-Ray</big>
  333. <br>
  334. <br>
  335. [B] to toggle aimbot
  336. <br>
  337. [H] to toggle x-ray
  338. <br>
  339. [N] to toggle esp
  340. <br>
  341. <br>
  342. By Zertalious
  343. <br>
  344. <br>
  345. <div class="btn-purple btn-darken menu-option" style="position: unset !important;" onclick="window.open('https://discord.gg/K24Zxy88VM')">Discord</div>
  346. <div class="btn-orange btn-darken menu-option" onclick="window.open('https://www.instagram.com/zertalious/', '_blank')">Instagram</div>
  347. <div class="btn-blue btn-darken menu-option" onclick="window.open('https://twitter.com/Zertalious', '_blank')">Twitter</div>
  348. <div class="btn-green btn-darken menu-option" onclick="window.open('https://gf.qytechs.cn/en/users/662330-zertalious', '_blank')">More scripts</div>
  349. ` }
  350. </div>`;
  351.  
  352. while ( el.children.length > 0 ) {
  353.  
  354. document.body.appendChild( el.children[ 0 ] );
  355.  
  356. }
  357.  
  358. if ( shouldShowAd ) {
  359.  
  360. const url = new URL( window.location.href );
  361.  
  362. url.searchParams.set( 'showAd', Date.now().toString( 16 ) );
  363.  
  364. window.location.href = 'https://zertalious.xyz?ref=' + new TextEncoder().encode( url.href ).toString();
  365.  
  366. }
  367.  
  368. } );

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址