-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtest-code-viewer.html
More file actions
102 lines (94 loc) · 4.99 KB
/
Copy pathtest-code-viewer.html
File metadata and controls
102 lines (94 loc) · 4.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test - Code Viewer</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<header>
<h1>🎯 Code Viewer Test</h1>
<p class="author">by OFJAAAH</p>
</header>
<div class="findings-container">
<h2>Code Finding Example</h2>
<!-- Example Finding Card -->
<div class="finding-card">
<div class="finding-header">
<span class="package-name">vulnerable-package</span>
<span class="package-type type-npm">NPM</span>
</div>
<div class="finding-details">
<div class="detail-row">
<span class="label">Fonte:</span>
<span class="value">https://example.com/bundle.js</span>
</div>
<div class="detail-row">
<span class="label">Found:</span>
<span class="value">2min ago</span>
</div>
<div class="detail-row">
<span class="label">Status:</span>
<span class="value status-vulnerable">❌ Does not exist publicly</span>
</div>
<div class="detail-row">
<span class="label">Linha:</span>
<span class="value">42</span>
</div>
</div>
<!-- Code Snippet Section -->
<details class="code-details" open>
<summary>💻 View detection code</summary>
<div class="code-snippet-container">
<pre class="code-snippet"><code><div class="code-line"><span class="line-number"> 39</span><span class="line-content">import React from 'react';</span></div><div class="code-line"><span class="line-number"> 40</span><span class="line-content">import { useState } from 'react';</span></div><div class="code-line"><span class="line-number"> 41</span><span class="line-content"></span></div><div class="code-line code-line-highlight"><span class="line-number"> 42</span><span class="line-content">const pkg = require('vulnerable-package');</span></div><div class="code-line"><span class="line-number"> 43</span><span class="line-content"></span></div><div class="code-line"><span class="line-number"> 44</span><span class="line-content">export default function App() {</span></div><div class="code-line"><span class="line-number"> 45</span><span class="line-content"> return <div>Hello World</div>;</span></div></code></pre>
</div>
</details>
<div class="finding-actions">
<button class="btn-action">📋 Copiar Nome</button>
<button class="btn-action">💻 Comando Create</button>
<button class="btn-action">🔗 Ver Registry</button>
</div>
</div>
<!-- Another Example with Python -->
<div class="finding-card">
<div class="finding-header">
<span class="package-name">suspicious_module</span>
<span class="package-type type-pip">PIP</span>
</div>
<div class="finding-details">
<div class="detail-row">
<span class="label">Fonte:</span>
<span class="value">https://example.com/app.py</span>
</div>
<div class="detail-row">
<span class="label">Found:</span>
<span class="value">5min ago</span>
</div>
<div class="detail-row">
<span class="label">Status:</span>
<span class="value status-vulnerable">❌ Does not exist publicly</span>
</div>
<div class="detail-row">
<span class="label">Linha:</span>
<span class="value">8</span>
</div>
</div>
<!-- Code Snippet Section -->
<details class="code-details">
<summary>💻 View detection code</summary>
<div class="code-snippet-container">
<pre class="code-snippet"><code><div class="code-line"><span class="line-number"> 5</span><span class="line-content">import os</span></div><div class="code-line"><span class="line-number"> 6</span><span class="line-content">import sys</span></div><div class="code-line"><span class="line-number"> 7</span><span class="line-content"></span></div><div class="code-line code-line-highlight"><span class="line-number"> 8</span><span class="line-content">import suspicious_module</span></div><div class="code-line"><span class="line-number"> 9</span><span class="line-content"></span></div><div class="code-line"><span class="line-number"> 10</span><span class="line-content">def main():</span></div><div class="code-line"><span class="line-number"> 11</span><span class="line-content"> print("Hello World")</span></div></code></pre>
</div>
</details>
<div class="finding-actions">
<button class="btn-action">📋 Copiar Nome</button>
<button class="btn-action">💻 Comando Create</button>
<button class="btn-action">🔗 Ver Registry</button>
</div>
</div>
</div>
</div>
</body>
</html>