RSS
people

Display list of folders

PHP script to display the list of folders and files in a spoof prevented apache server.

<?
$files = scandir(’.’);
foreach($files as $key => $value)
{
    echo ‘<a href=”‘ . $value . ‘”>’ .$value. ‘</a><br />’;
}
?>

Continue reading about Display list of folders

No Comments |

.NET Tip: Execute Commands From C#


public static int ExecuteCommand(string Command, int Timeout)
{
int ExitCode;
ProcessStartInfo ProcessInfo;
Process Process;

ProcessInfo = new ProcessStartInfo("cmd.exe", "/C " + Command);
ProcessInfo.CreateNoWindow = true;
ProcessInfo.UseShellExecute = false;
Process = Process.Start(ProcessInfo);
Process.WaitForExit(Timeout);
ExitCode = Process.ExitCode;
Process.Close();

return ExitCode;
}

Continue reading about .NET Tip: Execute Commands From C#

No Comments |

.NET Resources 2.0

See below for a much updated list of .NET resources.

This will be a living list, please post any suggested updates to this thread. If they pass muster, they will be included in the lead post.
Key Microsoft Resources (Framework)

Microsoft Developers Network (MSDN)
.NET Framework Developer Center
.NET 2.0 SDK: x86 x64
.NET Framework 3.0
.NET 1.1 SDK
MSDN Library: Online Download December 2006 Edition
Visual Basic Developer Center
Visual C# Developer Center

Key Microsoft Resources (ASP.NET & Sql Stack)

ASP.NET 2.0 Site
MSDN ASP.NET Developer Center
MSDN Web Services Developer Center
MSDN SQL Server Developer Center
Microsoft Patterns & Practices Team
.NET 3.0 Community Site

Express Editions Downloads
Microsoft has released free, but limited versions of Visual Studio for…

Continue reading about .NET Resources 2.0

No Comments |

SQL Commands

Here is a list of SQL commands and what they do, these would be used in some
injection methods and of course legitimate sql functions.
On thier own they wont exploit anything but eventually youl find an exploit
that needs these and they are good to know for injection or just to better
understand how SQL works.

ABORT — abort the current transaction
ALTER DATABASE — change a database
ALTER GROUP — add users to a group or remove users from a group
ALTER TABLE — change the definition of a table
ALTER TRIGGER — change the definition of a trigger
ALTER USER — change a database user account
ANALYZE —…

Continue reading about SQL Commands

No Comments |

Top 20 C++ tips

The following tips are a collection of general hands-on techniques and recondite pieces of knowledge not associated with a specific platform, programming domain, or compiler. As such, they can be of use to all C++ programmers. I grouped the tips into five major categories: general guidelines for coding style, memory management, performance enhancement, object-oriented design, and the Standard Template Library (STL).

What makes these tips special is that the information they provide usually cannot be found in C++ books or Web sites. For example, pointers to members are one of the most evasive, tricky, and bug-prone issues for even advanced users.…

Continue reading about Top 20 C++ tips

No Comments |

C++ Code Optimization

C++ Optimizations

These optimizations are fairly easy to apply to existing code and in some cases can result in big speedups. Remember the all-important maxim though, the fastest code is code that isn’t called.
Use Initialization Lists

Always use initialization lists in constructors. For example, use

TMyClass::TMyClass(const TData &data) : m_Data(data)
{
}

rather than

TMyClass::TMyClass(const TData &data)
{
m_Data = data;
}

Without initialization lists, the variable’s default constructor is invoked behind-the-scenes prior to the class’s constructor, then its assignment operator is invoked. With initialization lists, only the copy constructor is invoked.
Optimize For Loops

Whereever possible, count down to zero rather than up to n. For example, use

for (i = n-1; i…

Continue reading about C++ Code Optimization

1 Comment |

Obfuscated C Code Tricks

1. Introduction

Hello there dear claimant C obfuscator!You’re here so that I can teach you the fine art of obfuscation, thaught by the Tao since the Beginning. Not obfuscation for professional purposes though – it’s recreational obfuscation, possibly used to enter obfuscation contests, but mostly for when you’re bored and your girlfriend or similar entertainment been is away.

Nevertheless, you will learn some nice “features” of C and maybe you can even make use of some of the tricks with legitimate purposes in our daily coding. You, however, have the prime objective of having fun while reading this article.

Requirements? C knowledge, a…

Continue reading about Obfuscated C Code Tricks

No Comments |