Skip to content

Commit 34c54f7

Browse files
committed
Add talks & other files
1 parent ac06c93 commit 34c54f7

File tree

225 files changed

+49924
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+49924
-67
lines changed

README.md

Lines changed: 10 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,18 @@
1-
# base
1+
# Scapy.net
22

3-
## Project setup
3+
This repo hosts the source code behind the `scapy.net` website.
44

5-
```
6-
# yarn
7-
yarn
8-
9-
# npm
10-
npm install
11-
12-
# pnpm
13-
pnpm install
14-
```
15-
16-
### Compiles and hot-reloads for development
17-
18-
```
19-
# yarn
20-
yarn dev
21-
22-
# npm
23-
npm run dev
24-
25-
# pnpm
26-
pnpm dev
27-
```
28-
29-
### Compiles and minifies for production
30-
31-
```
32-
# yarn
33-
yarn build
34-
35-
# npm
36-
npm run build
5+
## Website
376

38-
# pnpm
39-
pnpm build
40-
```
41-
42-
### Lints and fixes files
43-
44-
```
45-
# yarn
46-
yarn lint
7+
The website is written in [Vue.js 3](https://vuejs.org/), using the [Vuetify](https://vuetifyjs.com/) framework, and built & published using Github Actions.
478

48-
# npm
49-
npm run lint
9+
### Develop
5010

51-
# pnpm
52-
pnpm lint
11+
```bash
12+
$ npm install
13+
$ npm run dev
5314
```
5415

55-
### Customize configuration
16+
## public
5617

57-
See [Configuration Reference](https://vitejs.dev/config/).
18+
The website also serves as a hosting platform for some external files, such as talks or conferences related to Scapy.

public/files/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# public/files
2+
3+
This folder contains:
4+
5+
- `UTscapy`: some files used by UTscapy html render
6+
- `doc`: images used in scapy's README
7+
- `index.html` and `scapydoc.pdf`: redirections to keep legacy URLs working
8+
- http://www.secdev.org/projects/scapy/files/scapydoc.pdf
9+
- http://www.secdev.org/projects/scapy/files

public/files/UTscapy/UTscapy.css

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
2+
body {
3+
background: #ffffff;
4+
color: #000000;
5+
font-size: 13px;
6+
font-family: Verdana, Arial, Helvetica, sans-serif;
7+
font-size: 12px;
8+
text-align: justify;
9+
}
10+
h1 { font-size: 30px; }
11+
h2 { font-size: 20px; }
12+
h3 { font-size: 16px; }
13+
h4 { font-size: 12px; font-style: bold;}
14+
dt { font-style: italic; }
15+
16+
17+
pre {
18+
border: solid #0000ff 1px;
19+
color: #000000;
20+
white-space: pre-wrap; /* css-3 */
21+
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
22+
white-space: -pre-wrap; /* Opera 4-6 */
23+
white-space: -o-pre-wrap; /* Opera 7 */
24+
word-wrap: break-word; /* Internet Explorer 5.5+ */
25+
background-color: #ffffd0;
26+
padding-left: 10px;
27+
padding-right: 10px;
28+
padding-top: 10px;
29+
padding-bottom: 10px;
30+
margin-top: 0px;
31+
text-align: left;
32+
margin-left: auto;
33+
margin-right: auto;
34+
font-family: Courier,Monospace, Courier, MS Courier New, Prestige, Everson Mono;
35+
font-style: normal;
36+
font-size: 14;
37+
}
38+
39+
40+
/* Scapy default color theme */
41+
42+
span.prompt { color: #0000ff; font-weight: bold; }
43+
span.not_printable { color: #a0a0a0; }
44+
span.layer_name { color: #ff0000; font-weight: bold; }
45+
span.field_name { color: #0000ff; }
46+
span.field_value { color: #ff00ff; }
47+
span.emph_field_name { color: #0000ff; font-weight: bold; text-decoration: underline }
48+
span.emph_field_value { color: #ff00ff; font-weight: bold; text-decoration: underline }
49+
span.packetlist_name { color: #ff0000; font-weight: bold; }
50+
span.packetlist_proto { color: #0000ff; }
51+
span.packetlist_value { color: #ff00ff; }
52+
span.fail { color: #ff0000; font-weight: bold; }
53+
span.success { color: #0000ff; font-weight: bold; }
54+
span.even { color: #000000; font-weight: bold; }
55+
span.odd { color: #000000; }
56+
span.opening { color: #00ffff; }
57+
span.active { color: #000000; }
58+
span.closed { color: #808080; }
59+
60+
/* Syntax highlighting */
61+
62+
.num { color:#2928ff; }
63+
.esc { color:#830000; }
64+
.str { color:#c00000; }
65+
.dstr { color:#818100; }
66+
.slc { color:#838183; font-style:italic; }
67+
.com { color:#838183; font-style:italic; }
68+
.dir { color:#ff0000; }
69+
.sym { color:#000000; }
70+
.line { color:#555555; }
71+
.blue { color:#0000ff; font-style:italic; }
72+
.kwa { color:#000000; font-weight:bold; }
73+
.kwb { color:#00a000; }
74+
.kwc { color:#00a000; }
75+
76+
77+
/* Regression tests */
78+
79+
li.passed {color: #002000;}
80+
li.failed {color: #200000;}
81+
li.interrupted {color: #200000;}
82+
span.comment { color:#000000; font-style: italic;}
83+
84+
span.crc {
85+
font-family: monospace;
86+
font-size: 12px;
87+
font-weight: normal;
88+
margin-top: 10px;
89+
background-color: #ccccff;
90+
}
91+
92+
span.warn_interrupted {
93+
font-family: monospace;
94+
font-size: 14px;
95+
font-weight: bold;
96+
color: #ff0000;
97+
}
98+
99+
span.buttonpassed {
100+
font-family: monospace;
101+
margin-top: 10px;
102+
background-color: #aaffaa;
103+
}
104+
span.buttonfailed {
105+
font-family: monospace;
106+
margin-top: 10px;
107+
background-color: #ffaaaa;
108+
}
109+
span.buttoninterrupted {
110+
font-family: monospace;
111+
margin-top: 10px;
112+
background-color: #ffcc88;
113+
}
114+
span.button {
115+
font-family: monospace;
116+
margin-top: 10px;
117+
background-color: #eeddff;
118+
}
119+
120+
span.control_button {
121+
border: solid #3b373f 1px;
122+
background-color: #eeddff;
123+
padding-left: 3px;
124+
padding-right: 3px;
125+
padding-top: 3px;
126+
padding-bottom: 3px;
127+
}

public/files/UTscapy/UTscapy.js

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
function make_visible(elt) {
2+
elt.style.visibility='visible';
3+
elt.style.position='relative';
4+
}
5+
6+
function make_hidden(elt) {
7+
elt.style.visibility='hidden';
8+
elt.style.position='absolute';
9+
}
10+
11+
function hide(id) {
12+
make_hidden(document.getElementById(id+'-'))
13+
make_visible(document.getElementById(id+'+'))
14+
make_hidden(document.getElementById(id))
15+
}
16+
17+
function show(id) {
18+
make_visible(document.getElementById(id+'-'))
19+
make_hidden(document.getElementById(id+'+'))
20+
make_visible(document.getElementById(id))
21+
}
22+
23+
function goto_id(id) {
24+
document.body.scrollTop = document.getElementById(id).offsetTop;
25+
}
26+
27+
function passed(id) {
28+
return /passed/.test(document.getElementById(id).className)
29+
}
30+
31+
function show_all(idbase) {
32+
try {
33+
for(i=0;;i++) {
34+
show(idbase+i);
35+
}
36+
} catch (error) { }
37+
}
38+
function hide_all(idbase) {
39+
try {
40+
for(i=0;;i++) {
41+
hide(idbase+i);
42+
}
43+
} catch (error) { }
44+
}
45+
function show_passed(idbase) {
46+
try {
47+
for(i=0;;i++) {
48+
if (passed(idbase+i)) {
49+
show(idbase+i);
50+
}
51+
}
52+
} catch (error) { }
53+
}
54+
55+
function show_failed(idbase) {
56+
try {
57+
for(i=0;;i++) {
58+
if (! passed(idbase+i)) {
59+
show(idbase+i);
60+
}
61+
}
62+
} catch (error) { }
63+
}
64+

public/files/doc/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This folder contains doc images / graphics that are too big for the scapy repo.

public/files/doc/animation-scapy-install.svg

Lines changed: 44 additions & 0 deletions
Loading

public/files/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE HTML>
2+
<html lang="en-US">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="refresh" content="0; url=https://github.com/secdev/scapy?files=1">
6+
<script type="text/javascript">
7+
window.location.href = "https://github.com/secdev/scapy?files=1"
8+
</script>
9+
<title>Page Redirection</title>
10+
</head>
11+
<body>
12+
If you are not redirected automatically, follow this <a href='https://github.com/secdev/scapy?files=1'>link to example</a>.
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)