<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/htb-visual-rx6gntbl0" -->

---
title: HTB: Visual | daily.dev
description: The post discusses how to abuse a Visual Studio build process to achieve remote code execution. It covers setting up a Gitea server, hosting a malicious...
canonical: https://daily.dev/posts/htb-visual-rx6gntbl0
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: HTB: Visual | daily.dev
og:description: The post discusses how to abuse a Visual Studio build process to achieve remote code execution. It covers setting up a Gitea server, hosting a malicious...
og:url: https://daily.dev/posts/htb-visual-rx6gntbl0
og:image: https://api.daily.dev/og/posts/Rx6GnTbl0.png
og:image:alt: HTB: Visual
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# HTB: Visual

**[0xdf hacks stuff](https://daily.dev/sources/0xdf)** · 27 min read · 7 upvotes · 1 comments

## Summary

The post discusses how to abuse a Visual Studio build process to achieve remote code execution. It covers setting up a Gitea server, hosting a malicious project, and using pre-build commands to execute arbitrary code. The author also explores gaining a shell as a local service and escalating privileges to achieve system-level access.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://0xdf.gitlab.io/2024/02/24/htb-visual.html>

## Community discussion

Top comments from developers on daily.dev.

**@grimy86** · 0 upvotes

> xct is a beast

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#webdev](https://daily.dev/tags/webdev), [#windows](https://daily.dev/tags/windows), [#docker](https://daily.dev/tags/docker), [#.net](https://daily.dev/tags/.net), [#php](https://daily.dev/tags/php), [#visual-studio](https://daily.dev/tags/visual-studio), [#c#](https://daily.dev/tags/c#), [#shell](https://daily.dev/tags/shell), [#pentest](https://daily.dev/tags/pentest)

[View this post on daily.dev](https://daily.dev/posts/htb-visual-rx6gntbl0)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"HTB: Visual","url":"https://daily.dev/posts/htb-visual-rx6gntbl0","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/htb-visual-rx6gntbl0"},"datePublished":"2024-02-24T15:02:18.899Z","dateModified":"2024-05-09T08:39:06.345Z","description":"The post discusses how to abuse a Visual Studio build process to achieve remote code execution. It covers setting up a Gitea server, hosting a malicious...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/623abbe578e1294cfbc4e9e59bd04754?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/623abbe578e1294cfbc4e9e59bd04754?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"0xdf hacks stuff","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"0xdf hacks stuff","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/16cdada70d5f4fac8b588c53bcf005ff","url":"https://daily.dev/sources/0xdf"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/htb-visual-rx6gntbl0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"security,webdev,windows,docker,.net,php,visual-studio,c#,shell,pentest","timeRequired":"PT27M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"0xdf hacks stuff","item":"https://daily.dev/sources/0xdf"},{"@type":"ListItem","position":3,"name":"HTB: Visual"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/htb-visual-rx6gntbl0","comment":[{"@type":"Comment","text":"xct is a beast","datePublished":"2024-02-26T08:10:25.693Z","dateModified":"2024-02-27T11:53:50.948Z","url":"https://daily.dev/posts/Rx6GnTbl0#c-MyAaqroil","author":{"@type":"Person","name":"grimy86","url":"https://daily.dev/grimy86","image":"https://avatars.githubusercontent.com/u/105457539?v=4"}}]}
```

