Skip to content

Commit 0c2a27b

Browse files
committed
add petir all for all
1 parent 8a60403 commit 0c2a27b

File tree

171 files changed

+22998
-0
lines changed

Some content is hidden

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

171 files changed

+22998
-0
lines changed

petir-all-for-all/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.script/__pycache__
2+
.done
3+
.rcds-cache
4+
rcds.yaml

petir-all-for-all/Binary Exploitation/.gitignore

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Dc2 tapi insane
2+
3+
Todo
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/redpwn/rcds/master/rcds/challenge/challenge.schema.yaml
2+
3+
name: Dc2 tapi insane
4+
author: "0xdc9"
5+
6+
description: |-
7+
Buktiian bahwa kamu adalah maling handal 💪🏻<br>
8+
nc 103.152.118.120 6781
9+
10+
flag: PETIR{kamu_adalah_maling_handal_0P_dan_jenius}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# GenAlpha
2+
3+
<p align="justify">IDK whats wrong with kids this days. They always saying things like skibidi and calling me L rizz?</p>
4+
5+
## FLAG
6+
7+
```
8+
PETIR{L1vyDun3_K4yCen4t_&_F4NumT4x3d_lmao_L}
9+
```
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/redpwn/rcds/master/rcds/challenge/challenge.schema.yaml
2+
3+
name: GenAlpha
4+
author: Vin
5+
6+
description: |-
7+
8+
<p align="justify">IDK whats wrong with kids this days. They always saying things like skibidi and calling me L rizz?</p>
9+
10+
```
11+
nc 188.166.249.196 4785
12+
```
13+
14+
flag: PETIR{L1vyDun3_K4yCen4t_&_F4NumT4x3d_lmao_L}
15+
16+
provide:
17+
- chall
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM debian:latest
2+
3+
RUN apt-get update && apt-get install -y xinetd && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /etc/xinetd.d/*
4+
RUN useradd -U -m -s /bin/bash petir
5+
6+
COPY ./xinetd.conf /etc/xinetd.conf
7+
RUN chmod 644 /etc/xinetd.conf
8+
9+
COPY ./chall /home/petir/chall
10+
COPY ./run.sh /home/petir/run
11+
COPY ./flag.txt /home/petir/flag.txt
12+
COPY ./startchall.sh /usr/bin/startchall
13+
COPY ./xinetd /etc/xinetd.d/xinetd
14+
15+
RUN chown -R root:petir /home/petir && chmod -R 550 /home/petir
16+
RUN chmod 500 /etc/xinetd.d/xinetd && chmod 500 /usr/bin/startchall
17+
18+
CMD ["/usr/bin/startchall"]
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: '3'
2+
services:
3+
gena:
4+
image: gena
5+
build: .
6+
restart: always
7+
environment:
8+
- TERM=xterm
9+
ports:
10+
- "4785:4785"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PETIR{L1vyDun3_K4yCen4t_&_F4NumT4x3d_lmao_L}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#! /bin/bash
2+
cd /home/petir && ./chall
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker-compose up --build -d
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#! /bin/bash
2+
3+
/etc/init.d/xinetd start;
4+
sleep infinity;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
service gena
2+
{
3+
disable = no
4+
socket_type = stream
5+
protocol = tcp
6+
wait = no
7+
user = petir
8+
type = UNLISTED
9+
port = 4785
10+
bind = 0.0.0.0
11+
server = /home/petir/run
12+
per_source = 10
13+
rlimit_cpu = 20
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Simple configuration file for xinetd
2+
#
3+
# Some defaults, and include /etc/xinetd.d/
4+
5+
defaults
6+
{
7+
instances = 60
8+
log_type = FILE /var/log/xinetdlog
9+
log_on_success = HOST PID
10+
log_on_failure = HOST
11+
cps = 25 30
12+
}
13+
14+
includedir /etc/xinetd.d

petir-all-for-all/Cryptography/.gitignore

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Genius Admire Simplicity
2+
3+
This is just a raw DLP challenge, the prime is very close to a Sophie Germain prime
4+
5+
The intended solution is to solve the DLP with NFS since the number is actually small enough. However implementing it manually will take too much labor so we can just do simple cado-nfs script kiddie type beat, please figure out the command yourself im not gonna bother teaching you to be a fully copy-paste script user
6+
7+
[https://gitlab.inria.fr/cado-nfs/cado-nfs/-/blob/master/README.dlp?ref_type=heads]()
8+
9+
10+
Second chall: todo, cek solver aja
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
"""
2+
Halo semuanya, sedikit backstory, filosofi dari series challenge saya ini adalah
3+
melihat bahwa challenge yang kelihatan rumit, sebenarnya bisa sangat sederhana.
4+
Dan challenge yang kelihatan sederhana, bisa memiliki approach yang tricky.
5+
6+
Nah awalnya saya siapin challenge yang isinya cuman 2 line berikut wkwkw:
7+
"""
8+
flag = int.from_bytes(open('flag.txt', 'rb').read())
9+
print(pow(2, flag, 1154543773027194978300531105544404721440832315984713424625039))
10+
"""
11+
Tapi setelah dipikir-pikir, ini sebenarnya ngga terlalu menggambarkan filosofi yang saya mau.
12+
Karena jatuhnya kayak crypto osint gitu. Jadi saya memutuskan untuk bikin chall yang baru.
13+
"""
14+
15+
16+
"""
17+
Oleh karena itu, saya bikin challenge kedua, setelah bikin challenge ini,
18+
Saya merasa sayang kalau challenge pertama ngga kepake, jadi saya tetap masukin wkwkkw
19+
"""
20+
import random
21+
flag = int.from_bytes(open('flag.txt', 'rb').read())
22+
for i in range(2048):
23+
k = random.getrandbits(flag.bit_length())
24+
c = bin(flag ^ k)[2:]
25+
random.shuffle(c)
26+
print(k, ''.join(c))
27+
"""
28+
Output dari program pertama (line 8-9) itu ada di output.txt, sementara yang kedua
29+
(line 20-26) ada di output2.txt. Kalian bisa coba solve kedua challenge ini, flagnya sama kok,
30+
jadi bisa pilih salah satu, tapi yang pertama jujur aja kayak crypto osint jadi kureng wkwkwk
31+
32+
33+
Good luck, thanks for giving it a try!
34+
P.S yang idiot admire complexity itu jauh lebih gampang jadi mungkin coba itu dulu wkwk
35+
~ Wrth
36+
"""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Genius Admire Simplicity
2+
author: Wrth
3+
4+
description: |-
5+
The wise simplifies the complex.
6+
7+
flag: PETIR{b75b981f0a5c0a18}
8+
9+
provide:
10+
- chall.py
11+
- output.txt
12+
- output2.txt
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
835532352781502333372775638298898416582385916146429622012175
2+
3+
Sedikit note:
4+
flag < largest factor of (1154543773027194978300531105544404721440832315984713424625039 - 1)

0 commit comments

Comments
 (0)