-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31516dc
commit cc08ddf
Showing
3 changed files
with
139 additions
and
46 deletions.
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,48 @@ | ||
function bring_posts() { | ||
var xhr = new XMLHttpRequest(); | ||
var url = "./data/json/post.json"; // Replace with your API endpoint | ||
xhr.open("GET", url, true); | ||
xhr.responseType = "json"; | ||
xhr.onload = function () { | ||
if (xhr.status === 200) { | ||
var response = xhr.response; | ||
const result = response.result; | ||
var pages = result | ||
// Loop through the pages and display the information in the div | ||
pages.forEach(function (page) { | ||
if (page.featured == "true") { | ||
console.table(page); | ||
document.getElementById("highlighted_topic").innerText = page.title; | ||
document.getElementById("highlighted_content").innerText = page.description; | ||
document.getElementById("highlighted_banner").src = page.image_url; | ||
} | ||
else { | ||
var blog_container=document.getElementById("blog_container"); | ||
blog_container.innerHTML+=` | ||
<div class="p-4 lg:w-1/3"> | ||
<div class="h-full bg-gray-800 bg-opacity-40 px-8 pt-16 pb-24 rounded-lg overflow-hidden text-center relative"> | ||
<h2 class="tracking-widest text-xs title-font font-medium text-gray-500 mb-1">${page.tag}</h2> | ||
<h1 class="title-font sm:text-2xl text-xl font-medium text-white mb-3">${page.title}</h1> | ||
<p class="leading-relaxed mb-3">${page.description}</p> | ||
<a class="text-indigo-400 inline-flex items-center" href="${page.url}" target="_blank">Read | ||
<svg class="w-4 h-4 ml-2" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<path d="M5 12h14"></path> | ||
<path d="M12 5l7 7-7 7"></path> | ||
</svg> | ||
</a> | ||
</div> | ||
</div> | ||
` | ||
// console.warn("no page is featured"); | ||
} | ||
}); | ||
// console.log(result.pages) | ||
// console.table(result) | ||
// | ||
} else { | ||
console.error("XHR request failed with status code:", xhr.status); | ||
} | ||
}; | ||
xhr.send(); | ||
} | ||
|
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,84 @@ | ||
{ | ||
"result": [ | ||
{ | ||
"title": "Andro-Predom", | ||
"url": "/article?view=andro-predom-2080", | ||
"description": "A Pentesting tool aimed to expose the possible risks of exploiting an android phone through adb commands simulated through the programme which comprises a range of exploiting and exposing features. ", | ||
"content": "loading...", | ||
"featured": "true", | ||
"image_url": "https://github.com/devsdenepal/andro-predom/raw/main/ScreenShot_20230101193530.jpeg", | ||
"github_link": "https://github.com/Krimson-Squad/andro-predom", | ||
"tag": "Shell" | ||
}, | ||
{ | ||
"title": "AndherNagri", | ||
"url": "/article?view=andhernagri-2080", | ||
"description": "A vulnerable site to practice XSS and SQL injection.", | ||
"content": "loading...", | ||
"featured": "false", | ||
"image_url": "N/A", | ||
"github_link": "https://github.com/Krimson-Squad/AndherNagri", | ||
"tag": "PHP" | ||
}, | ||
{ | ||
"title": "xupa-rustam", | ||
"url": "/article?view=xupa-rustam-2080", | ||
"description": "Python based Pentesting Brute-Force tool to crack username and password of a simple traditional website ", | ||
"content": "loading...", | ||
"featured": "false", | ||
"image_url": "N/A", | ||
"github_link": "https://github.com/Krimson-Squad/xupa-rustam", | ||
"tag": "Python" | ||
}, | ||
{ | ||
"title": "PhantomBlitz", | ||
"url": "/article?view=phantomblitz-2080", | ||
"description": "PhantomBlitz: Yet another tool for reverse shell execution & payload generator by Dev. Gautam Kumar ", | ||
"content": "loading...", | ||
"featured": "false", | ||
"image_url": "N/A", | ||
"github_link": "https://github.com/Krimson-Squad/PhantomBlitz", | ||
"tag": "Python" | ||
}, | ||
{ | ||
"title": "unvetion", | ||
"url": "/article?view=unvetion-2080", | ||
"description": "MINI RECON PROJECT.", | ||
"content": "loading...", | ||
"featured": "false", | ||
"image_url": "N/A", | ||
"github_link": "https://github.com/Krimson-Squad/unvetion", | ||
"tag": "Python" | ||
}, | ||
{ | ||
"title": "Common Techniques & Software ", | ||
"url": "/article?view=common-techniques-n-software-2080", | ||
"description": "List of common T1 and SO(s) used by Threat groups.", | ||
"content": "loading...", | ||
"featured": "false", | ||
"image_url": "N/A", | ||
"github_link": "https://github.com/Krimson-Squad/common-techniques-n-software", | ||
"tag": "Markdown" | ||
}, | ||
{ | ||
"title": "WebSecProbe", | ||
"url": "/article?view=webSecProbe-2080", | ||
"description": "Web Application Vulnerability Scanning using Python and browser automation libraries allowing efficient scanning of web application.", | ||
"content": "loading...", | ||
"featured": "false", | ||
"image_url": "N/A", | ||
"github_link": "https://github.com/Krimson-Squad/WebSecProbe", | ||
"tag": "Python" | ||
}, | ||
{ | ||
"title":"ShadowCipher", | ||
"url":"/article?view=shadow-cipher-2080", | ||
"description":"A simple tool that allows you to generate wordlists based on first and last names. It provides various patterns and variations to create a wide range of potential words for password cracking, data analysis, or other purposes. ", | ||
"content":"loading...", | ||
"featured":"false", | ||
"image_url":"N/A", | ||
"github_link":"https://github.com/Krimson-Squad/ShadowCipher", | ||
"tag":"Python" | ||
} | ||
] | ||
} |
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