Steal and Run Money & Brainrot Hack

Get 999B money, plain stuffed username, and brainrot spawner

Size

14.3 KB

Version

1.0.1

Created

Mar 12, 2026

Updated

10 days ago

1// ==UserScript==
2// @name		Steal and Run Money & Brainrot Hack
3// @description		Get 999B money, plain stuffed username, and brainrot spawner
4// @version		1.0.1
5// @match		https://*.poki.com/*
6// @match		https://img.poki.com/*
7// @match		https://*.poki-gdn.com/*
8// @icon		https://a.poki-cdn.com/img/favicon.ico
9// @grant		GM.getValue
10// @grant		GM.setValue
11// ==/UserScript==
12(function() {
13    'use strict';
14
15    console.log('Steal and Run Hack loaded');
16
17    // Function to inject script into the game iframe
18    function injectIntoGame() {
19        const iframe = document.getElementById('game-element');
20        if (!iframe) {
21            console.log('Game iframe not found, retrying...');
22            return false;
23        }
24
25        try {
26            const iframeWindow = iframe.contentWindow;
27            const iframeDocument = iframe.contentDocument;
28
29            // Inject our hack script into the iframe
30            const script = iframeDocument.createElement('script');
31            script.textContent = `
32                (function() {
33                    console.log('Hack script injected into game');
34                    
35                    let hackApplied = false;
36                    
37                    // Function to find and modify game objects
38                    function applyHacks() {
39                        if (hackApplied) return;
40                        
41                        try {
42                            // Search for game objects in window
43                            for (let key in window) {
44                                try {
45                                    const obj = window[key];
46                                    if (obj && typeof obj === 'object') {
47                                        // Look for money/coins properties
48                                        if (obj.money !== undefined) {
49                                            console.log('Found money property in', key);
50                                            obj.money = 999000000000;
51                                            hackApplied = true;
52                                        }
53                                        if (obj.coins !== undefined) {
54                                            console.log('Found coins property in', key);
55                                            obj.coins = 999000000000;
56                                            hackApplied = true;
57                                        }
58                                        if (obj.cash !== undefined) {
59                                            console.log('Found cash property in', key);
60                                            obj.cash = 999000000000;
61                                            hackApplied = true;
62                                        }
63                                        if (obj.balance !== undefined) {
64                                            console.log('Found balance property in', key);
65                                            obj.balance = 999000000000;
66                                            hackApplied = true;
67                                        }
68                                        
69                                        // Look for username/name properties
70                                        if (obj.username !== undefined) {
71                                            console.log('Found username property in', key);
72                                            obj.username = 'plain stuffed';
73                                        }
74                                        if (obj.playerName !== undefined) {
75                                            console.log('Found playerName property in', key);
76                                            obj.playerName = 'plain stuffed';
77                                        }
78                                        if (obj.name !== undefined && typeof obj.name === 'string') {
79                                            console.log('Found name property in', key);
80                                            obj.name = 'plain stuffed';
81                                        }
82                                    }
83                                } catch (e) {
84                                    // Skip inaccessible properties
85                                }
86                            }
87                            
88                            // Hook into localStorage to modify saved data
89                            const originalSetItem = localStorage.setItem;
90                            localStorage.setItem = function(key, value) {
91                                try {
92                                    let data = JSON.parse(value);
93                                    if (data.money !== undefined) data.money = 999000000000;
94                                    if (data.coins !== undefined) data.coins = 999000000000;
95                                    if (data.cash !== undefined) data.cash = 999000000000;
96                                    if (data.balance !== undefined) data.balance = 999000000000;
97                                    if (data.username !== undefined) data.username = 'plain stuffed';
98                                    if (data.playerName !== undefined) data.playerName = 'plain stuffed';
99                                    if (data.name !== undefined) data.name = 'plain stuffed';
100                                    value = JSON.stringify(data);
101                                } catch (e) {
102                                    // Not JSON, leave as is
103                                }
104                                return originalSetItem.call(this, key, value);
105                            };
106                            
107                            // Try to modify existing localStorage data
108                            for (let i = 0; i < localStorage.length; i++) {
109                                const key = localStorage.key(i);
110                                try {
111                                    let value = localStorage.getItem(key);
112                                    let data = JSON.parse(value);
113                                    let modified = false;
114                                    
115                                    if (data.money !== undefined) {
116                                        data.money = 999000000000;
117                                        modified = true;
118                                    }
119                                    if (data.coins !== undefined) {
120                                        data.coins = 999000000000;
121                                        modified = true;
122                                    }
123                                    if (data.cash !== undefined) {
124                                        data.cash = 999000000000;
125                                        modified = true;
126                                    }
127                                    if (data.balance !== undefined) {
128                                        data.balance = 999000000000;
129                                        modified = true;
130                                    }
131                                    if (data.username !== undefined) {
132                                        data.username = 'plain stuffed';
133                                        modified = true;
134                                    }
135                                    if (data.playerName !== undefined) {
136                                        data.playerName = 'plain stuffed';
137                                        modified = true;
138                                    }
139                                    
140                                    if (modified) {
141                                        console.log('Modified localStorage key:', key);
142                                        originalSetItem.call(localStorage, key, JSON.stringify(data));
143                                    }
144                                } catch (e) {
145                                    // Not JSON or error, skip
146                                }
147                            }
148                            
149                        } catch (e) {
150                            console.error('Error applying hacks:', e);
151                        }
152                    }
153                    
154                    // Apply hacks immediately
155                    applyHacks();
156                    
157                    // Keep trying to apply hacks periodically
158                    setInterval(applyHacks, 2000);
159                    
160                    // Add brainrot spawner button
161                    function addBrainrotSpawner() {
162                        if (document.getElementById('brainrot-spawner-btn')) return;
163                        
164                        const button = document.createElement('button');
165                        button.id = 'brainrot-spawner-btn';
166                        button.textContent = 'Spawn Brainrot';
167                        button.style.cssText = 'position: fixed; top: 10px; right: 10px; z-index: 999999; padding: 10px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 8px; font-weight: bold; font-size: 14px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.3s;';
168                        
169                        button.onmouseover = function() {
170                            this.style.transform = 'scale(1.05)';
171                            this.style.boxShadow = '0 6px 20px rgba(0,0,0,0.4)';
172                        };
173                        
174                        button.onmouseout = function() {
175                            this.style.transform = 'scale(1)';
176                            this.style.boxShadow = '0 4px 15px rgba(0,0,0,0.3)';
177                        };
178                        
179                        button.onclick = function() {
180                            console.log('Brainrot spawned!');
181                            
182                            // Try to spawn brainrot by triggering game events
183                            try {
184                                // Look for spawn functions
185                                for (let key in window) {
186                                    try {
187                                        const obj = window[key];
188                                        if (obj && typeof obj === 'object') {
189                                            if (typeof obj.spawn === 'function') {
190                                                console.log('Found spawn function in', key);
191                                                obj.spawn();
192                                            }
193                                            if (typeof obj.spawnEnemy === 'function') {
194                                                console.log('Found spawnEnemy function in', key);
195                                                obj.spawnEnemy();
196                                            }
197                                            if (typeof obj.spawnBrainrot === 'function') {
198                                                console.log('Found spawnBrainrot function in', key);
199                                                obj.spawnBrainrot();
200                                            }
201                                        }
202                                    } catch (e) {
203                                        // Skip
204                                    }
205                                }
206                                
207                                // Visual feedback
208                                this.textContent = 'Brainrot Spawned!';
209                                setTimeout(() => {
210                                    this.textContent = 'Spawn Brainrot';
211                                }, 1000);
212                            } catch (e) {
213                                console.error('Error spawning brainrot:', e);
214                            }
215                        };
216                        
217                        document.body.appendChild(button);
218                        console.log('Brainrot spawner button added');
219                    }
220                    
221                    // Add spawner button when DOM is ready
222                    if (document.body) {
223                        addBrainrotSpawner();
224                    } else {
225                        document.addEventListener('DOMContentLoaded', addBrainrotSpawner);
226                    }
227                    
228                    // Also try after a delay
229                    setTimeout(addBrainrotSpawner, 2000);
230                    
231                })();
232            `;
233            
234            iframeDocument.head.appendChild(script);
235            console.log('Script injected successfully');
236            return true;
237        } catch (e) {
238            console.error('Failed to inject script:', e);
239            return false;
240        }
241    }
242
243    // Wait for the game iframe to load
244    function waitForGame() {
245        const checkInterval = setInterval(() => {
246            const iframe = document.getElementById('game-element');
247            if (iframe) {
248                // Wait a bit more for the iframe to fully load
249                setTimeout(() => {
250                    if (injectIntoGame()) {
251                        clearInterval(checkInterval);
252                    }
253                }, 2000);
254            }
255        }, 1000);
256    }
257
258    // Start when page loads
259    if (document.readyState === 'loading') {
260        document.addEventListener('DOMContentLoaded', waitForGame);
261    } else {
262        waitForGame();
263    }
264
265    // Also add a control panel on the main page
266    function addControlPanel() {
267        const panel = document.createElement('div');
268        panel.id = 'hack-control-panel';
269        panel.innerHTML = `
270            <div style="position: fixed; top: 10px; left: 10px; z-index: 999999; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); font-family: Arial, sans-serif;">
271                <div style="font-weight: bold; font-size: 16px; margin-bottom: 10px;">🎮 Game Hack Active</div>
272                <div style="font-size: 12px; opacity: 0.9;">✓ 999B Money</div>
273                <div style="font-size: 12px; opacity: 0.9;">✓ Username: plain stuffed</div>
274                <div style="font-size: 12px; opacity: 0.9;">✓ Brainrot Spawner</div>
275            </div>
276        `;
277        document.body.appendChild(panel);
278    }
279
280    setTimeout(addControlPanel, 3000);
281
282})();