Skip to content

Commit fbcf579

Browse files
author
tkokhing
committed
building up AD notes, inside tkokhing hosting
1 parent 89355d2 commit fbcf579

File tree

4 files changed

+166
-3
lines changed

4 files changed

+166
-3
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
// [tkokhing/heptagoning/_heptagoning/_kill-chain/_active_dir] MDX_FOLDER
2+
import { Metadata } from "next";
3+
import { notFound } from "next/navigation";
4+
import Container from "@/app/_components/preference/container";
5+
import { PostHeader } from "@/app/_components/post_gen/post-header";
6+
import { PostBody } from "@/app/_components/post_gen/post-body";
7+
import { getPostBySlug } from "@/lib/share/api";
8+
import { generatePageMetadata } from "@/lib/share/generatePageMetadata";
9+
import { generatePageStaticParams } from "@/lib/share/generatePageStaticParams";
10+
import { AD_Overview, AD_Kerberos } from "@/lib/_data_exporter/data_kiil-chain/kill-chain_exporter";
11+
import Alert from "@/app/_components/blog_frame/alert";
12+
import Note from "@/app/_components/blog_frame/note";
13+
import Tip from "@/app/_components/blog_frame/tip";
14+
import { ToggleFrame } from "@/app/_components/preference/toggle-frame";
15+
16+
const MDX_FOLDER = "_heptagoning/_kill-chain/_active_dir";
17+
18+
type Params = {
19+
params: Promise<{
20+
slug: string;
21+
}>;
22+
};
23+
24+
export default async function Post(props: Params) {
25+
const params = await props.params;
26+
const ImportComponents = {
27+
Tip,
28+
Note,
29+
Alert,
30+
ToggleFrame,
31+
AD_Overview,
32+
AD_Kerberos,
33+
};
34+
const post = getPostBySlug(params.slug, MDX_FOLDER);
35+
if (!post || post.subPath != 'heptagoning/kill-chain/active_dir') return notFound();
36+
37+
return (
38+
<main>
39+
<Container>
40+
<article className="mb-32">
41+
<PostHeader
42+
title={post.title}
43+
coverImage={post.coverImage}
44+
date={post.date}
45+
author={post.author}
46+
subPath={post.subPath}
47+
postStatus={post.postStatus}
48+
/>
49+
<PostBody content={post.content} components={ImportComponents}/>
50+
</article>
51+
</Container>
52+
</main>
53+
);
54+
}
55+
56+
export async function generateMetadata(props: Params): Promise<Metadata> {
57+
const params = await props.params;
58+
return generatePageMetadata(params.slug, MDX_FOLDER);
59+
}
60+
61+
export async function generateStaticParams() {
62+
return generatePageStaticParams(MDX_FOLDER);
63+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
// [tkokhing/heptagoning/_heptagoning/_kill-chain/_delivery] MDX_FOLDER
2+
import { Metadata } from "next";
3+
import { notFound } from "next/navigation";
4+
import Container from "@/app/_components/preference/container";
5+
import { PostHeader } from "@/app/_components/post_gen/post-header";
6+
import { PostBody } from "@/app/_components/post_gen/post-body";
7+
import { getPostBySlug } from "@/lib/share/api";
8+
import { generatePageMetadata } from "@/lib/share/generatePageMetadata";
9+
import { generatePageStaticParams } from "@/lib/share/generatePageStaticParams";
10+
import { NMAP_Overview, NMAP_Vuln_Scan, NMAP_SMB_Enum, NMAP_TCP_vs_UDP } from "@/lib/_data_exporter/data_kiil-chain/kill-chain_exporter";
11+
import Alert from "@/app/_components/blog_frame/alert";
12+
import Note from "@/app/_components/blog_frame/note";
13+
import Tip from "@/app/_components/blog_frame/tip";
14+
import { ToggleFrame } from "@/app/_components/preference/toggle-frame";
15+
16+
const MDX_FOLDER = "_heptagoning/_kill-chain/_delivery";
17+
18+
type Params = {
19+
params: Promise<{
20+
slug: string;
21+
}>;
22+
};
23+
24+
export default async function Post(props: Params) {
25+
const params = await props.params;
26+
const ImportComponents = {
27+
Tip,
28+
Note,
29+
Alert,
30+
ToggleFrame,
31+
NMAP_Overview,
32+
NMAP_Vuln_Scan,
33+
NMAP_SMB_Enum,
34+
NMAP_TCP_vs_UDP,
35+
};
36+
const post = getPostBySlug(params.slug, MDX_FOLDER);
37+
if (!post || post.subPath != 'heptagoning/kill-chain/delivery') return notFound();
38+
39+
return (
40+
<main>
41+
<Container>
42+
<article className="mb-32">
43+
<PostHeader
44+
title={post.title}
45+
coverImage={post.coverImage}
46+
date={post.date}
47+
author={post.author}
48+
subPath={post.subPath}
49+
postStatus={post.postStatus}
50+
/>
51+
<PostBody content={post.content} components={ImportComponents}/>
52+
</article>
53+
</Container>
54+
</main>
55+
);
56+
}
57+
58+
export async function generateMetadata(props: Params): Promise<Metadata> {
59+
const params = await props.params;
60+
return generatePageMetadata(params.slug, MDX_FOLDER);
61+
}
62+
63+
export async function generateStaticParams() {
64+
return generatePageStaticParams(MDX_FOLDER);
65+
}

src/app/heptagoning/kill-chain/recon/[slug]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { PostBody } from "@/app/_components/post_gen/post-body";
77
import { getPostBySlug } from "@/lib/share/api";
88
import { generatePageMetadata } from "@/lib/share/generatePageMetadata";
99
import { generatePageStaticParams } from "@/lib/share/generatePageStaticParams";
10-
import { NMAP_Overview, NMAP_Vuln_Scan, NMAP_SMB_Enum, NMAP_TCP_vs_UDP } from "@/lib/_data_exporter/data_kiil-chain/kill-chain_exporter";
10+
import { NMAP_Overview, NMAP_Vuln_Scan, NMAP_SMB_Enum, NMAP_TCP_vs_UDP, RUSTSCAN_Overview } from "@/lib/_data_exporter/data_kiil-chain/kill-chain_exporter";
1111
import Alert from "@/app/_components/blog_frame/alert";
1212
import Note from "@/app/_components/blog_frame/note";
1313
import Tip from "@/app/_components/blog_frame/tip";
@@ -32,6 +32,7 @@ export default async function Post(props: Params) {
3232
NMAP_Vuln_Scan,
3333
NMAP_SMB_Enum,
3434
NMAP_TCP_vs_UDP,
35+
RUSTSCAN_Overview,
3536
};
3637
const post = getPostBySlug(params.slug, MDX_FOLDER);
3738
if (!post || post.subPath != 'heptagoning/kill-chain/recon') return notFound();

src/lib/share/constants.ts

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,39 @@ export const T_ANI_GIF_URL = `${LOGO_PATH}/tkokhing.gif`;
77
export const TKOKHING_LOGO_SVG_URL = `${LOGO_PATH}/tkokhing.svg`;
88
export const VICTIM1_IP = "172.17.0.5";
99
export const VICTIM1_PORT = "8080";
10-
export const ATTACKER_IP = "10.4.6.114";
11-
export const ATTACKER_PORT = "4444";
10+
export const ATTACKER_IP = "192.168.137.19";
11+
export const ATTACKER_PORT = "4444";
12+
13+
// AD Setup
14+
15+
// export const Client01_IP = "172.16.101.101";
16+
// export const Client01_PORT_FORWARD = "4444";
17+
18+
// // for kerberoasted service
19+
// export const RUNNING_SPN = "svc-auth";
20+
21+
// // EncodedText for SCSHELL
22+
// export const EncodedText = "encoded_text_for_scshell"
23+
24+
// export const WEB01_IP = "172.16.101.101";
25+
// export const WEB01_PORT_FORWARD = "4444";
26+
27+
// export const DC01_IP = "172.16.101.141";
28+
// export const DC01_PORT_FORWARD = "4442";
29+
30+
export const Client01_IP_EXT = "192.168.118.173";
31+
export const Client01_IP_INT = "172.16.242.173";
32+
export const Client01_PORT_FORWARD = "4444";
33+
34+
// // for kerberoasted service
35+
export const RUNNING_SPN = "svc-auth";
36+
37+
// // EncodedText for SCSHELL
38+
export const EncodedText = "encoded_text_for_scshell"
39+
40+
41+
export const WEB01_IP = "172.16.242.176";
42+
export const WEB01_PORT_FORWARD = "4443";
43+
44+
export const DC01_IP = "172.16.242.162";
45+
export const DC01_PORT_FORWARD = "4442";

0 commit comments

Comments
 (0)