This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ucsb-seclab/frontend
Add HUGO Frontend Template
- Loading branch information
Showing
119 changed files
with
10,157 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Sample workflow for building and deploying a Hugo site to GitHub Pages | ||
name: Deploy Hugo site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: | ||
- frontend | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
# Default to bash | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
HUGO_VERSION: 0.125.3 | ||
steps: | ||
- name: Install Hugo CLI | ||
run: | | ||
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ | ||
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb | ||
- name: Install Dart Sass | ||
run: sudo snap install dart-sass | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v4 | ||
- name: Install Node.js dependencies | ||
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" | ||
- name: Build with Hugo | ||
env: | ||
# For maximum backward compatibility with Hugo modules | ||
HUGO_ENVIRONMENT: production | ||
HUGO_ENV: production | ||
run: | | ||
hugo \ | ||
--gc \ | ||
--minify \ | ||
--baseURL "${{ steps.pages.outputs.base_url }}/" | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./public | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "cvex/themes/hugo-xterm"] | ||
path = cvex/themes/hugo-xterm | ||
url = https://github.com/manid2/hugo-xterm |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
# xplor-cvex | ||
# CVEX: Common Vulnerability and Exposure Executable | ||
|
||
This static HUGO website serves as a database of completed CVEXes. These CVEXes were created by Team Kruegel & Vigna, 4 undergraduate researchers affiliated with UCSB's Early Research Scholars Program 2023-2024 cohort. | ||
|
||
Special thanks to Noah Spahn, Professor Giovanni Vigna, and Professor Christopher Kruegel, and UCSB SecLab. | ||
|
||
# What is a CVEX? | ||
CVEX is an executable that runs a software exploit and outputs relevant data in the form of network traffic. Each CVEX is packaged in the form of a Docker container, which has the benefit of being convenient and compatible with any operating system. As a result, CVEXes can be run and analyzed by any person curious to understand the workings of a software vulnerability. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
+++ | ||
title = '{{ replace .File.ContentBaseName "-" " " | title }}' | ||
date = {{ .Date }} | ||
draft = true | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: CVEX-2017-1000499 | ||
description: phpMyAdmin versions 4.7.x (prior to 4.7.6.1/4.7.7) are vulnerable to a CSRF weakness. By deceiving a user to click on a crafted URL, it is possible to perform harmful database operations such as deleting records, dropping/truncating tables etc. | ||
layout: single | ||
date: 2021-12-19T20:39:39-08:00 | ||
draft: true | ||
weight: 50 | ||
url: /CVEX-2017-1000499/ | ||
--- | ||
|
||
Description goes here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: Common Vulnerability and Exposure Executables (CVEX) | ||
description: A Collection of our Completed CVEXes | ||
layout: single | ||
--- | ||
|
||
CVEXes go here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
baseURL = 'https://example.org/' | ||
languageCode = 'en-us' | ||
title = 'CVEX' | ||
theme = 'hugo-xterm' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script> | ||
<title>404 Page not found :: CVEX</title> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="description" content="" /> | ||
<meta name="keywords" content="" /> | ||
<meta name="robots" content="noodp" /> | ||
<link rel="canonical" href="http://localhost:1313/404.html" /> | ||
<meta property="og:locale" content="en" /> | ||
<meta property="og:title" content="404 Page not found :: CVEX" /> | ||
<meta property="og:description" content="" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:url" content="http://localhost:1313/404.html" /> | ||
<meta property="og:site_name" content="CVEX" /> | ||
<meta property="og:image" content="" /> | ||
<meta property="og:image:width" content="2048" /> | ||
<meta property="og:image:height" content="1024" /> | ||
|
||
|
||
|
||
<link rel="shortcut icon" href="" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Roboto+Slab:wght@300;400;500&family=Ubuntu+Mono:ital@0;1&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link href="/404.html" rel="alternate" type="application/rss+xml" title="CVEX" /> | ||
<link rel="stylesheet" href="http://localhost:1313/styles.css" /> | ||
</head> | ||
|
||
<body> | ||
<div class="theme-container"> | ||
<div class="container"> | ||
<header class="site-header"> | ||
<nav class="navbar"> | ||
<div class="navbar__first"> | ||
<ul class="navbar__list borders"> | ||
<li><a href="http://localhost:1313/">Home</a></li> | ||
<li> | ||
<button class="theme-toggle transparent"><svg class="theme-toggler" width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path | ||
d="M22 41C32.4934 41 41 32.4934 41 22C41 11.5066 32.4934 3 22 | ||
3C11.5066 3 3 11.5066 3 22C3 32.4934 11.5066 41 22 41ZM7 22C7 | ||
13.7157 13.7157 7 22 7V37C13.7157 37 7 30.2843 7 22Z" | ||
/> | ||
</svg> | ||
</button> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="navbar__separator"></div> | ||
</nav> | ||
</header> | ||
<main class="site-main"> | ||
<article class="content"> | ||
<header> | ||
<h1 class="post-title">404 — Page not found...</h1> | ||
</header> | ||
<p> | ||
<a href="http://localhost:1313/">Back to home page →</a> | ||
</p> | ||
</article> | ||
</main> | ||
<footer class="site-footer"> | ||
<p class="buildinfo"> | ||
<time datetime="2024-05-27 17:41:36 PDT">Site built on: 2024-05-27 17:41:36 PDT</time> | ||
</p> | ||
<div class="copyright"> | ||
<p></p> | ||
<nav class="navbar"> | ||
<ul class="navbar__list"> | ||
<li><a href="http://localhost:1313/posts/index.xml">RSS</a></li> | ||
<li><a href="http://localhost:1313/sitemap.xml">Sitemap</a></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
<p class="themeinfo">Powered by <a href="https://gohugo.io">Hugo</a>, using theme <a href="https://manid2.github.io/hugo-xterm/">Hugo Xterm</a>.</p> | ||
</footer> | ||
</div> | ||
</div><script type="text/javascript" src="/bundle.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script> | ||
<title>CVEX-2017-1000499 :: CVEX</title> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="description" content="phpMyAdmin versions 4.7.x (prior to 4.7.6.1/4.7.7) are vulnerable to a CSRF weakness. By deceiving a user to click on a crafted URL, it is possible to perform harmful database operations such as deleting records, dropping/truncating tables etc." /> | ||
<meta name="keywords" content="" /> | ||
<meta name="robots" content="noodp" /> | ||
<link rel="canonical" href="http://localhost:1313/CVEX-2017-1000499/" /> | ||
<meta property="og:locale" content="en" /> | ||
<meta property="og:title" content="CVEX-2017-1000499 :: CVEX" /> | ||
<meta property="og:description" content="phpMyAdmin versions 4.7.x (prior to 4.7.6.1/4.7.7) are vulnerable to a CSRF weakness. By deceiving a user to click on a crafted URL, it is possible to perform harmful database operations such as deleting records, dropping/truncating tables etc." /> | ||
<meta property="og:type" content="article" /> | ||
<meta property="article:published_time" content="2021-12-19 20:39:39 -0800 PST" /> | ||
<meta property="article:modified_time" content="2021-12-19 20:39:39 PST" /> | ||
<meta property="article:author" content="CVEX" /> | ||
<meta property="og:url" content="http://localhost:1313/CVEX-2017-1000499/" /> | ||
<meta property="og:site_name" content="CVEX" /> | ||
<meta property="og:image" content="" /> | ||
<meta property="og:image:width" content="2048" /> | ||
<meta property="og:image:height" content="1024" /> | ||
|
||
|
||
|
||
<link rel="shortcut icon" href="" /> | ||
<link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Roboto+Slab:wght@300;400;500&family=Ubuntu+Mono:ital@0;1&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link href="/CVEX-2017-1000499/" rel="alternate" type="application/rss+xml" title="CVEX" /> | ||
<link rel="stylesheet" href="http://localhost:1313/styles.css" /> | ||
</head> | ||
|
||
<body> | ||
<div class="theme-container"> | ||
<div class="container"> | ||
<header class="site-header"> | ||
<nav class="navbar"> | ||
<div class="navbar__first"> | ||
<ul class="navbar__list borders"> | ||
<li><a href="http://localhost:1313/">Home</a></li> | ||
<li> | ||
<button class="theme-toggle transparent"><svg class="theme-toggler" width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path | ||
d="M22 41C32.4934 41 41 32.4934 41 22C41 11.5066 32.4934 3 22 | ||
3C11.5066 3 3 11.5066 3 22C3 32.4934 11.5066 41 22 41ZM7 22C7 | ||
13.7157 13.7157 7 22 7V37C13.7157 37 7 30.2843 7 22Z" | ||
/> | ||
</svg> | ||
</button> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="navbar__separator"></div> | ||
</nav> | ||
</header> | ||
<main class="site-main"><article class="post"> | ||
<header class="post-header"> | ||
<h1 class="post-title"><a href="http://localhost:1313/CVEX-2017-1000499/">CVEX-2017-1000499</a></h1> | ||
<div class="post-meta"> | ||
<time pubdate datetime="2021-12-19 20:39:39 PST"> | ||
Published on | ||
2021-12-19 20:39:39 PST | ||
</time> | ||
<time pubdate datetime="2021-12-19 20:39:39 PST"> last modified 2021-12-19 20:39:39 PST. </time> | ||
</div> | ||
<p class="post-description">phpMyAdmin versions 4.7.x (prior to 4.7.6.1/4.7.7) are vulnerable to a CSRF weakness. By deceiving a user to click on a crafted URL, it is possible to perform harmful database operations such as deleting records, dropping/truncating tables etc.</p> | ||
</header> | ||
<div class="post-content"> | ||
<p>Description goes here.</p> | ||
|
||
</div> | ||
|
||
|
||
<footer class="post-footer"> | ||
</footer> | ||
</article> | ||
</main> | ||
<footer class="site-footer"> | ||
<p class="buildinfo"> | ||
<time datetime="2024-05-27 17:41:36 PDT">Site built on: 2024-05-27 17:41:36 PDT</time> | ||
</p> | ||
<div class="copyright"> | ||
<p></p> | ||
<nav class="navbar"> | ||
<ul class="navbar__list"> | ||
<li><a href="http://localhost:1313/posts/index.xml">RSS</a></li> | ||
<li><a href="http://localhost:1313/sitemap.xml">Sitemap</a></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
<p class="themeinfo">Powered by <a href="https://gohugo.io">Hugo</a>, using theme <a href="https://manid2.github.io/hugo-xterm/">Hugo Xterm</a>.</p> | ||
</footer> | ||
</div> | ||
</div><script type="text/javascript" src="/bundle.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.