- Cloud Computing
- Non-relational databases
- Next-generation distributed computing
- Web-Oriented Architecture (WOA)
- Mashups
- Open Supply Chains via APIs
- Dynamic Languages
- Social computing
- Crowdsourcing and peer production architectures
- New Application Models
From http://hinchcliffe.org/archive/2009/03/17/16712.aspx
superscan - Ping sweep
nslookup
> Server ipaddress
> Set type=any
> Ls –d target.com
sqlping2
net view /domain - Identify domains on the wire
net view /domain:domain_name - Identify machines in the domain
net use \\10.1.1.20\ipc$ "" /user:"" - Establish null session connection
getmac \\10.1.1.20 - Obtain network transport information
psexec \\10.1.1.20 cmd.exe - Obtain a remote command shell
netmon 3.0
You may want to check the book: Hacking Exposed: Network Security Secrets and Solutions for more detailed tips and information.
Comments Off
A sample of LINQ provider.
using System;
using System.Collections;
namespace LINQSample
{
class Program
{
static void Main(string[] args)
{
var myNumberServer = new MyNumberServer(323, 2);
var query = from a in myNumberServer
where a != 3
select a;
foreach(var item in query)
{
Console.WriteLine(item);
}
}
}
public class MyNumberServer
{
private readonly int _numberToServer;
private readonly int _length;
public MyNumberServer(int init, int length)
{
_numberToServer = init;
_length = length;
}
public IEnumerator GetEnumerator()
{
for (int i = 0; i < _length; i++)
{
yield return _numberToServer;
}
}
}
public static class Extensions
{
public static IEnumerable Where(this MyNumberServer source, Func<int, bool> predicate)
{
foreach (int item in source)
{
if (predicate(item))
{
yield return item;
}
}
}
public static IEnumerable Select(this MyNumberServer source, Func<object, object> selector)
{
foreach (var item in source)
{
yield return selector(item);
}
}
public static IEnumerable Cast(this MyNumberServer source)
{
foreach (var item in source)
{
yield return (int)(item);
}
}
}
}
Note: This is a sample from the book “Essential LINQ”.
IQueryable<T> is the type used in LINQ to SQL queries. IQueryable<T> differs from IEnumerable<T> in that it includes an expression tree. In particular, the type takes the following shape:
public interface IQueryable<T> : IEnumerable<T>, IQueryable, IEnumerable
{
}
The important interface in this declaration is IQueryable:
public interface IQueryable: IEnumerable
{
Type ElementType {get;}
Expression Expression {get;}
IQueryProvider Provider {get;}
}
The key property here is the middle one - Expression. IQueryable<T> implements IEnumerable<T>.
Comments Off