What is Razor ?
Razor is a markup syntax that lets you embed server-based code (Visual Basic and C#) into web pages.
Razor is based on ASP.NET, and designed for creating web applications. It has the power of traditional ASP.NET markup, but it is easier to use, and easier to learn.
For more information, please visit the following links:
Razor Code Execution
<meta charset="utf-8" />
<title>Web Pages Demo</title>
<h1>Hello Web Pages</h1>
<p>The time is @DateTime.Now</p>
We can also use other basic PoCs here
Eventually, we can also go directly for a reverse shell. Small payload here:
You will find a good explanation and a good case at the following link: https://www.scip.ch/en/?labs.20170105