Permalink
Browse files

added lfi shots

  • Loading branch information...
1 parent 6c7dc13 commit 0a338964fe6aebdc02e58158e3147056621ff0d5 @donwb committed Nov 9, 2012
Showing with 38 additions and 0 deletions.
  1. +10 −0 lfi.aspx
  2. +28 −0 lfi.aspx.cs
View
@@ -0,0 +1,10 @@
+<%@ Page Title="" Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true" CodeFile="lfi.aspx.cs" Inherits="lfi" %>
+
+<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
+
+ <font color="white">
+ <asp:Literal runat="server" ID="myLiteral"></asp:Literal>
+ </font>
+
+</asp:Content>
+
View
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.IO;
+using System.Text;
+using System.Xml.Linq;
+
+public partial class lfi : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ StringBuilder sb = new StringBuilder();
+ DirectoryInfo di = new DirectoryInfo(Server.MapPath("lfi"));
+ FileInfo[] files = di.GetFiles();
+
+
+ foreach (FileInfo fi in files)
+ {
+ sb.Append("<img src=\"lfi/" + fi.Name + "\" /> <br/>" + fi.Name + "<p/>");
+
+ }
+
+ myLiteral.Text = sb.ToString();
+ }
+}

0 comments on commit 0a33896

Please sign in to comment.