Wallpapers Collections

Wallpapers Collections

Wednesday, February 29, 2012

ASP.NET on Linux

We write a simple ASP.NET application on Linux using an IDE called MonoDevelop. The application will uses the ASP.NET Model View Controller framework and LINQ.



The single, popular solution to run ASP.NET applications, on Linux, is Mono (www.mono-project.com/). The reason being, Mono has come a long way to achieve near compatibility and cutting edge features of Microsoft .NET. Mono can be used to run .NET applications on Linux and Mac, besides Windows.
For developers, the exciting part about Mono is that it has started supporting the latest features in .NET like C# 4.0, ASP.NET MVC, LINQ and Moonlight. What's more, using Mono you can start writing .NET apps for Apple iPad, iPhone and iPod, today.
In this article, we write a simple ASP.NET application which uses ASP.NET MVC (Model View Controller) framework and LINQ. We will write this application, on Linux, using an IDE called MonoDevelop (monodevelop.com).
To keep the app simple, we will use a SQLite database which will be queried via LINQ (Language Integrated Query). And we w ill deploy the app on an Apache server, running on Linux.
Setup the prerequisites
The application in this article is written and deployed on Fedora 13. We used version 2.6 of Mono and version 2.4 of MonoDevelop. Installing Apache and Mono packages on Fedora 13 is as simple as issuing the following commands as root:
yum install httpd mod_mono
Fedora 13 ships with MonoDevelop 2.2. To install MonoDevelop 2.4, we compiled the MonoDevelop source RPMs found at http://elsupergomez.fedorapeople.org/SRPMS/. You can download the compiled RPMS from forums.pcquest.com and install them as 'rpm -Uvh <filename>'.
An ASP .Net MVC app
An ASP .Net MVC application breaks through the traditional Web Forms application, allowing full control and replaceable ways to design the UI and access a database. MonoDevelop makes it easier to write a MVC app. It generates the required skeleton and files - just like Visual Studio.
Fire MonoDevelop (Applications>
Programming>MonoDevelop in GNOME). Click on File>New>Solution. Under C#>ASP .Net, ­select ASP .Net MVC Project. Type in the name of the project and click Ok. This creates the skeleton code for an ASP .Net MVC application - see the Solution pane on the left.
You can see the MVC app working, already, by clicking on Run>Run With>Mono Soft Debugger for ASP .Net. You will be greeted by a Web page saying "Welcome to ASP.NET MVC on Mono!"
Add a database via LINQ
Next, lets create and add a simple SQLite database to the project. We will access this database using LINQ. In simple words, Language Integrated Query (LINQ) is a language to query the database as objects, rather than using SQL.
On MonoDevelop, click on Tools>Database>Create Database>SQLite Database. Enter a Name, say PCQuestDB and for Database type in pcquest.sqlite. The database will get created in your home directory (/home/<your-user-name>).
Next, select Tools>Database>Query Database. From the dropdown, in the bottom pane, select the database (PCQuestDB in our case) and type in the following queries:
create table article (id integer primary key, title varchar(100));
insert into article (title) values ('Title 1');
insert into article (title) values ('Title 2');
insert into article (title) values ('Title 3');
Click on the Execute button. Next to generate the corresponding LINQ classes, click on Tools>Database>Generate Linq Class. For Connection, select PCQuestDB and then click on Ok. This will add a new file called Output.cs to the Solution pane, on the left. Open this file and find the following lines:
using DbLinq.Linq;
using DbLinq.Linq.Mapping;
Comment out or delete these lines and add a line as:
using System.Data.Linq;
Next, open the file named Web.Config and add the following lines after the tag </configSections>
<add name="PCQDB" connectionString=
"DbLinqProvider=Sqlite;Data Source=/opt/pcquest.sqlite" />
Next, copy pcquest.sqlite file, found in your home directory to /opt directory.
Next in the Solution pane, right click on References and select Edit References. Click on the Packages tab and tick the checkbox against Mono.Data.Sqlite.
Note, in case you see System.Web.Mvc, in red, under References. Right click on System.Web.Mvc and select Delete. Next, right click on References and select Edit References. Click on the .Net Assembly Tab. Browse to the directory /usr/lib/mono/gac/System.Web.Mvc/1.0.0.0__31bf3856ad364e35. Select System.Web.Mvc.dll. Click on Add and then on OK.
The Controllers and Views code
On the Solutions pane, expand Controllers and click to edit the file HomeController.cs. Modify the code as follows:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Configuration;
namespace Controllers
{
[HandleError]
public class HomeController : Controller
{
public ActionResult Index ()
{
PCQuest.DbLinq.Main pcqDB = new PCQuest.DbLinq.Main(new Mono.Data.Sqlite.SqliteConnection(WebConfigurationManager
.ConnectionStrings["PCQDB"].ToString()));
var query = from q in pcqDB.Article
select q;
return View(query);
}
}
}
In the above code, note the use of LINQ to query the SQLite database.
Next, expand the Views>Home. Modify the code of Index.aspx as follows:
<%@ Page Inherits="System.Web.Mvc.ViewPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<div>
<ul>
<% foreach (PCQuest.DbLinq.Article article in (Ienumerable)ViewData.Model) { %>
<li> <%= article.Title %></li>
<% } %>
</ul>
</div>
</body>
Deploy on Apache web server
First, a small configuration change is required for Apache, to serve ASP .Net MVC apps. For this, login as root and open the file named mod_mono.conf found in the directory /etc/httpd/conf.d. Append the following line to it:
ForceType application/x-asp-net
Save the file and reload the configuration change by issuing "service httpd reload"
Next, create a directory named mvc under /var/www/html. For quick and non production deployment, give all permissions to this directory by issuing the command: chmod 777 /var/www/html/mvc.
On MonoDevelop, click on Project>Deploy to Web. Click on Edit Targets button. Click on Add and type in any Name. For Target, select Local Filesystem. For Target Directory, browse or enter the path: /var/www/html/mvc. Click on Ok. Back on the 'Deploying Web Project' window, select the Location and click on Deploy. Make sure that  the SQLite file copied in /opt (see above) is accessible to the Apache Web Server.
Browse to the URL, http://localhost/mvc and you should be able to see a simple list of all the articles' titles in the SQLite database.
The take home is: with Mono, Linux can be used as a platform to develop as well as deploy cutting edge ASP.Net applications.

Microsoft Metro app store


icrosoft today made good on its promise to open the doors to its Windows Store alongside the launch of the public Windows 8 preview.
Windows Store -- Microsoft's name for the app store-style distribution channel it's assigned as the sole source of Metro-style apps for Windows 8 -- requires the Consumer Preview that debuted earlier Wednesday.
Through the stretch between now and the release of Windows 8's final code -- most expect that milestone this fall in time for the holiday season -- all Windows Store apps will be free for the downloading and installing, Microsoft has said.
Among the apps offered today on the Windows Store were eight winners of a contest Microsoft kicked off in early December, 2011 that promised placement in the market as well as prizes that included a developer PC.
The winners ranged from several games and a weather forecasting app to an e-cookbook and a financial portfolio tracker.
Other apps that debuted today included the ubiquitous Cut the Rope game, a Metro edition ofEvernote and apps created by newspapers such asUSA Today and the Los Angeles Times.
Microsoft has said that the Windows Store will be the only authorized distributor of Metro apps -- the touch-first programs that rely on an simplistic interface borrowed from Windows Phone -- but that the store will eventually include links to titles written for the traditional x86/64 Windows desktop.
The company will take a 30% cut of app revenue up to $25,000 -- the same percentage Apple earns for software sold through its Mac App Store -- but will slash its slice to 20% after that bar is reached.
Enterprises will also be able to circumvent the Windows Store by "sideloading" internally-created apps directly to workers' devices and computers. Today, Microsoft provided more information on sideloading and Metro app management on its website.
Earlier versions of Windows, including the now-current Windows 7, cannot access the Windows Store.
Microsoft has not yet disclosed the release date for Windows 8, but Windows chief Steven Sinofsky said today that the development cycle would emulate that of Windows 7, with a near-final "Release Candidate" next in line, followed by a build that will be marked "Release to Manufacturing" to signal it's ready to pass along to computer makers.

Resetting Ubuntu Password



ubuntu_usb_amd64
Hey Guys,
If you’ve forgotten your Ubuntu 11.10 Password you can reset it within minutes. I will tell you two methods to reset your Ubuntu Password. The first one is by booting it in recovery mode and second one is by using any Live OS.

Let’s start with the recovery mode first as it takes less time and easy to do in comparison to the second one method:

Boot up your Ubuntu. Press and Hold ‘Shift’ Key while the machine is booting. You will get the GRUB Menu like this:


Select the second option which is ‘Recovery Mode’ and press Enter. After pressing enter system will start booting and you will get a list of options like this:




After that we need to make the filesystem writable so that we can change the password. To make it writable select the 3rd option ‘remount’ and press Enter. After pressing enter you will get the following:




Press Enter here and you will get recovery menu with a list of options again:



Select the last option ‘root’ and press enter. If the root account password is not set then you will get a shell prompt like this:





Now you can enter commands to reset the password of any account.
#passwd <username>



Enter the new password and confirm it by entering again.

Now enter command ‘sync’.



Now Enter the command ‘reboot –f’ to reboot.


Now you can login with your new password.


Now if the root account is having a password then you will not get the shell at recovery mode. In this case you need to boot your ubuntu machine with any Live OS. I will be booting it again with Ubuntu 11.10.

Boot your machine with Ubuntu 11.10. You will get a screen asking to just try this as a live cd or install it on your machine:



Click on ‘Try Ubuntu’  to use it as a LIVE OS.

You will get desktop a live user.  Now you need to mount the file system to change the password. First we need to know the device name of the filesystem to mount. To get the name of device enter the command ‘sudo fdisk –l’


Now as you can see the system type of /dev/sda1 is Linux.
So we need to mount the device ‘/dev/sda1’.

To mount this device enters the following command.
#sudo mount /dev/sda1 /tmp


Now we need to enter the command ‘sudo chroot /tmp’  to get the shell on your filesystem:


Now we’ve got the shell we can change the password of any user by entering the command‘passwd <username>’


Now restart the machine by entering the command ‘reboot’ and you will be able to login with your new password.

3G Tricks and tricks fir iphone


As the clichĂ© goes, with great power comes great responsibility. Round 2 of the iPhone revolution brought fans a 3G-capable model with a built-in GPS radio—not to mention plenty of software enhancements that work on both the new model and the original version.
Of course, that means there's more to learn. But that's where we come in. We assume you already know how to make calls, surf the Web, synchronize your music and photos, and generally have a good time—but you want to learn some real shortcuts. If that's the case, here's a list of our top tips and tricks for iPhone 2.0, geared toward more advanced users. Want to become a real iPhone power user? Read on.
1. Force-quit an application. Now that the iPhone is a real handheld computer, it's not immune from the occasional misbehaving application. If one freezes up on you, force-quit by pressing and holding the Home button for 6 seconds.
Make reservations the easy way. 2. Make reservations the easy way. If you're looking up a phone number for something in Safari—say a restaurant or a hotel—there's no need to leave the page when you find it. Simply tap the number right on the page; the iPhone will dial it automatically.
3. Double-down with scrolling. Many Web pages contain separate text boxes with their own scroll bars. If you're trying to move around in one, try this: Zoom in, and then scroll with two fingers instead of one. That will let you scroll just inside the box and not affect the position of the entire page.
4. Maximize battery life, part 1. iPhone and iPhone 3G models have more sensors than just the accelerometer. For example, they have a separate sensor, situated right above the earpiece, that detects ambient light. The iPhone uses this sensor only once per session, though, just as you unlock the handset. But if you cover the sensor as you unlock the phone, you will trick the handset into thinking it's in a dark room, and it will power down the screen brightness as a result.
Maximize battery life, part 25. Maximize battery life, part 2. The iPhone's newfound e-mail synchronization abilities are useful, but they also drain the battery more quickly. If that's a concern, under Fetch New Data, set e-mail fetch time to Hourly, and turn Push off.
6. Grab a screenshot. The latest iPhone software lets you easily take screenshots of just about anything. To grab one, hold down the Home button and press the Sleep/Wake button. The iPhone will deposit a photo of the current screen in the iPhone's Photo application.
Get a bigger keyboard in Safari. 7. Get a bigger keyboard in Safari. Before you begin browsing, rotate the phone horizontally. Now tap the address bar. VoilĂ : a wider keyboard. Now if Apple would only add this feature in more applications instead of just Safari….

8. Keep Safari's address bar handy. Ever scroll pretty far down a Web page, only to find that the address bar has disappeared? No need to scroll back up—instead, tap the top part of the screen. The address bar will reappear, regardless of where you are on the actual Web page.
9. Enter punctuation quickly. To enter a period while using the on-screen keyboard, hold down the Punctuation key and slide your finger over to the Period button. Then release it. (This works for all punctuation, of course.)
Ride the dot-com wave. 10. Ride the dot-com wave. When keying in Web addresses, the iPhone gives you a very useful .com button that lets you add the four characters in one press. But as with the desktop version of Safari, you can even leave that out: Safari will automatically add it for you. Bonus tip: hold down the .com button; you'll be presented with a list of alternate domain endings, such as .net, .edu, and .org.

Tuesday, February 21, 2012

Hacking Awards Best of Year 2011


2011 has been labeled the "Year of the Hack” or “Epic #Fail 2011”. Hacking has become much easier over the years, which is why 2011 had a lot of hacking for good and for bad. Hackers are coming up with tools as well as finding new methods for hacking faster then companies can increase their security.  Every year there are always forward advancements in the tools and programs that can be used by the hackers.

At the end of year 2011 we decided to give "The Hacker News Awards 2011". The Hacker News Awards will be an annual awards ceremony celebrating the achievements and failures of security researchers and the Hacking community. The THN Award is judged by a panel of respected security researchers and Editors at The Hacker News.
Year 2011 came to an end following Operation Payback and Antisec, which targeted companies refusing to accept payments to WikiLeak's, such as, Visa and Amazon. Those attacks were carried out by Anonymous & Lulzsec. This year corporations, international agencies, and governments are now experiencing a flood of what is called Advanced Persistent Threats. APTs refer to a group of well-funded, highly capable hackers pursuing a specific agenda, often organized by a nation or State. Sony somehow pissed off the hacking group LulzSec, which downloaded information for millions of users, while posting to Sony's system: "LulzSec was here you sexy bastards! Stupid Sony, so very stupid."

The Hacker News Awards Categories & Winners
1.) Person of the Year : Julian Paul Assange
assange_784x0


He is, of course, the lean, tall, and pale 39-year-old Australian master hacker at the white-hot center of the whistle-blowing website WikiLeaks and, after revealing thousands of secret Afghan battlefield reports this week, the subject of investigation by U.S. authorities. 2011 could also be called the “Age of WikiLeaks”. Assange described himself in a private conversation as "the heart and soul of this organisation, its founder, philosopher, spokesperson, original coder, organizer, financier, and all the rest". Wikileaks celebrate its 5th Birthday on 4th October 2011, for being only 5 years old they have done a remarkable and outstanding job of serving the people. The one thing most governments in the world have left off their agenda’s. Keep up the good work Wikileaks and we stand in support and behind you.

2.) Best Hacking Group of the Year 2011 : ANONYMOUS
AnonymousLogo

DECK THE HALLS AND BATTON DOWN THE SECURITY SYSTEMS…..THEY AIN’T GOIN AWAY!
Anonymous hackers have gained world wide attention because of their hacktivism. Anonymous is not an organization. Anonymous has no leaders, no gurus, no ideologists. Anonymous has performed many operations like Attack on HBGary Federal, 2011 Bank of America document release, Operation Sony, Operation Anti-Security and lots more. Complete Coverage on all Anonymous related news is here.

3.) Best Whitehat hacker of the Year 2011 : CHARLIE MILLER
CHARLIE SHOWS TUNA ISN’T THE ONLY THING TO PROFIT FROM!
Charlie Miller is a former hacker who has become an information security consultant now working with the Department of Defense (DOD) and helping out with cyber security. He spent five years working for the National Security Agency. Miller demonstrated his hacks publicly on products manufactured by Apple. In 2008 he won a $10,000 cash prize at the hacker conference Pwn2Own in Vancouver Canada for being the first to find a critical bug in the ultrathin MacBook Air. The next year, he won $5,000 for cracking Safari. In 2009 he also demonstrated an SMS processing vulnerability that allowed for complete compromise of the Apple iPhone and denial-of-service attacks on other phones. In 2011 he found a security hole in an iPhone's or iPad's security. Charlie Miller gets a kick of out defeating Apple’s security mechanisms, using his hacking skills to break into Macbooks and iPhones.

4.) Best Leak of the year 2011 : HBGARY FEDERAL EMAILS LEAKED BY ANONYMOUS
hbg_war_anonymous_top
GEE GREG, YOU THOUGHT WE JUST PLAYED WITH MATEL COMPUTERS!  NOT!!!!!
HBGary Federal who was helping the federal government track down cyber activists was itself hacked by the very same activists!  Gotta love these guys.  Through an elegant but by the numbers social engineering effort those fun fellas at Anonymous,  hacked and publicly shamed poor little HBGary Federal. Massive reputation damage and tons of turn-over in executive leadership resulted. Anonymous released 27,000 emails from the server of Greg Hoglund, chief executive of the software security firm HBGary. They posted 50,000 emails of Aaron Barr from the CEO of its sister organization, HBGary Federal. They obtained the emails by hacking into Hoglund’s email.

5.) Best Defacement of the Year 2011 : DNS HIJACKING OF HIGH PROFILE SITES BY TURKGUVENLIGI
theregister-hacked
TURKGUVENLIGI……..THE GIFT THAT KEEPS ON GIVING!!
Turkguvenligi also known by the name "TG Hacker' hacked some very high profile sites using DNS Hijacking.  Sites included, Theregister.co.uk , Vodafone, Telegraph, Acer, National Geographic. He diverted visitors to a page declaring it was “World Hackers Day”. TurkGuvenligi has claimed credit for dozens of similar defacement attacks since late 2008. 

6.) Craziest Hack of the year: INMOTION HOSTING (Over 700,000 Websites Hacked)
timthumb
BEWARE OF TIGER’S IN MOTION…….COMING TO YOUR WEBSITE SOON!
InMotion's data center got hit by the hacker that calls himself TiGER-M@TE, leaving a few hundred thousand website owners with nonfunctional pages and 700,000 web Pages defaced . He is also the one responsible for the attack carried out on Google Bangladesh.  In our humble opinion, this is the craziest hack of the year. 

7.) Malware of Year 2011 : DuQu
image
ALAH CAN’T HELP IRAN…….NOT WITH DuQu ON THE LOOSE!
This year was really hot on malware discovery and analysis. DuQu  became the first known network modular rootkit.   DuQu has flexibility for hackers to help remove and add new features quickly and without special effort. Some experts have doubts on relation between the Stuxnet and DuQu creators as they both aim for stealing and collecting data related to Iranian agencies activities.

8.) Best Hacking Tool of the Year 2011 - ANTI (Android Network Toolkit)
Graphic1
HEY CYBER WORLD, STICK THIS IN YOUR TOOL BELT!
ANTI is the smallest but most powerful hacking tool developed by the company Zimperium. Anti-Android Network Toolkit is an app that uses WiFi scanning tools to scan networks. You can scan a network that you have the phone connected to or you can scan any other nearby open networks. Security admins can use Anti to test network host vulnerabilities for DoS attacks and other threats. Features : OS detection, traceroute, port connect, Wi-Fi monitor, HTTP server, man-in-the-middle threats, remote exploits, Password Cracker and DoS attack and plugins.

9.) High Profile Hacker of the Year 2011 : LULZSEC
lulz-sec-cia-intro-thumb-640xauto-22693
LULZSEC KEEPS US LAUGHING ALL THROUGH 2011!
Lulz Security, commonly abbreviated as LulzSec, is a computer hacker group that claims responsibility for several high profile attacks, including the compromise of user accounts from Sony Pictures in 2011. The group also claimed responsibility for taking the CIA website offline. It has gained attention due to its high profile targets and the sarcastic messages it has posted in the aftermath of its attacks. The group's first recorded attack was against Fox.com's website. LulzSec does not appear to hack for financial profit. The group's claimed main motivation is to have fun by causing mayhem. They do things "for the lulz" and focus on the possible comedic and entertainment value of attacking targets.

10.) Biggest Victim of the Year 2011 : SONY
sony-hacked-again-1
SONY SHINES AS THE BIGGEST VICTIM OF ALL!
Sony gets the Most Epic fail award so we want to give the Best Victim of the year award to Sony. Almost all Sony’s websites including IndonesiaJapanThailandGreeceCanadaNetherlands, Europe, Russia, Portugal & Sony PlayStation Network were Hacked. Defacement of various domains of Sony and Personal information of 77 million people, including customer names, addresses, e-mail addresses, birthdays, PlayStation Network and Qriocity passwords, user names, online handles and possibly credit cards were exposed. Sony expects the hack of the PlayStation Network and cost at ¥14 billion (US$170 million) .

11.) Most Spamy Social Network : FACEBOOK
facebook-spams
FACEBOOK OUTTA FACE IT……..IT’S A RIPE TARGET FOR 2012
Social network sites such as Facebook, Google+ or Twitter are gaining popularity. But the 'Web 2.0' presents new dangers. The wave of pornographic and violent images, Spam messages, Virus and various Worms that flooded Facebook over the past year, make it the Most Spamy Social Network of the Year. Social media is the new frontier for all of this spam. The attack tricked users into clicking on a story they thought would bring them a related video or picture. Instead, Facebook members were taken to websites that attacked their browsers with malicious software and posted violent and disturbing images to their news feeds. 

12.) Most Vulnerable Mobile OS of Year 2011 : ANDROIDS
android-wifi-tokens
MALWARE GETS A FREE RIDE ON MOBILE DEVICES!
Mobile devices are seeing a record number of Malware attacks, with Androids leading the way as the mobile operating systems are the  most likely to be targeted. Android’s vulnerability to malicious content including third-party apps, SMS Trojan viruses and unexpected bugs distributed through free Wi-Fi connections has risen by 45% in 2011. This year we have seen record-breaking numbers of Malware, especially on mobile devices, where the uptake is in direct correlation to popularity. 

13.) Best Hacking Book of the Year: BACKTRACK 5 WIRELESS PENETRATION TESTING
Untitled
ATTENTION CLASS, VIVEK RAMACHANDRAN HAS ENTERED THE ROOM!
Vivek Ramachandran is a world renowned security researcher and evangelist, who is well known for his discovery of the Wireless Caffe Latte attack, and author of the most amazing book “BackTrack 5 Wireless Penetration Testing. This book is written completely from a practical perspective. The book wastes no time in delving into a hands-on session with wireless networking. All the way through there are lots of screengrabs, so you can see what should be happening on your screen.

14.) Most Innovative Hack : DIGITAL CERTIFICATES SPOOFING BY COMODO HACKER
hacker
COMODOHACKER BRINGS OUT THE DRAGON IN CYBER SECURITY CONCERNS
The name "Comodohacker" gets the most Innovative Hacker award from THN for the breach of the Internet's trust system arising from an outmoded method for assuring that a Web site is authentic.  A breach that let a hacker spoof digital certificates for Google.com, Yahoo.com, and other Web sites is prompting browser makers to rethink security. A 21-year-old Iranian patriot took credit saying he was protesting US policy and retaliating against the US for its alleged involvement with last year’s Stuxnet, which experts say was designed to target Iran’s nuclear program.


15.) Biggest hack of the Year 2011 : SONY PLAYSTATION
PlayStation-Network-007
SONY, SONY, WE PLAY YOUR LEAKS ON OUR OWN STATIONS!
The PlayStation Network is an online multiplayer gaming and digital media delivery service owned and run by Sony Computer Entertainment .On April 26, 2011 Sony Playstation announced its network and Qriocity had both been compromised by hackers between April 17 and April 19 allowing access to 70 million user accounts. Get full coverage on this News.
“TRUTH IS THE MOST POWERFUL WEAPON AGAINST INJUSTICE”
For additional information, please contact us at: thehackernews@gmail.com