Recover FileZilla FTP Passwords

Published 5/27/2008 by Aaron in Downloads
I needed to recover my FTP passwords from a copy of FileZilla today but I either didn't trust the various downloads or didn't want to pay to use them.

So here is the free-to-use code for recovering your FileZilla FTP passwords.

You will need to copy the "Pass" variable from the FileZilla.xml file or registry into the textbox when you run. Unlike the other versions out there, this doesn't go looking for the password files or search the registry. I think you can take care of that, the difficult part of deciphering the password is taken care of for you.

Code as usual is in C#

Download FileZilla Password Recovery Code here

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

A couple of weeks ago another chap named Aaron asked me if I had done a copy of the PageRank code but this time in VB.Net

I said I'd take a look because the versions out on the Internet that he had seen didn't work. Well this evening I found the time to do the VB.Net version.

I started by manually converting my C# code to VB.Net - bear in mind I haven't worked in VB.Net for over 2 years now. When the conversion was complete I found that VB.Net was converting and handling integer types slightly differently to C#.

When my code failed to work I resulted to using a free online C# to VB.Net conversion utility on devfusion. The conversion was pretty much word for word what I had put and still didn't work.

I then went through the process of stepping each iteration and for-next loop until I found the cause of the differences in values being retured. Turns out in the end it was simply the "integer division" operator that I needed to use in place of the standard division operator.

So here it is: download pagerank tool code in VB.net and C#

Also bear in mind this is .Net v2 code - I haven't tested it on previous versions of VB.Net

If you use this in your code or on your website, I'd appreciate you linking back to my website.

Enjoy

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

This is a simple application that allows you to filter individual lines out of numerous files in a single directory. I have found uses in cleaning dictionary files where US words have crept in.

It could be equally useful in removing anything that exists on its own on a single line. Simple provide the path containing the data files to clean and then select the file that contains each erronious entry.

Download from here: Filter Software

Thanks,

AR

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

I've uploaded a copy of the code in a demo website for the pagerank tool in C#.

You can download it from: Full PageRank code with demo site

I've tried out a few websites and URLs that people have posted to me and got mixed results. I will be updating it if I can find fixes. In particular the hash seems to fail on some sub-directories.

Download it and try it out for yourself. Feedback is always welcome and drop a comment while you're here.



UPDATE

The previous code was being blocked by Google for some requests due to a mis-calculated hash. This has been fixed now and the download updated.

You can also checkout my online demo at (not currently live)



UPDATE

I've been asked by Aaron Brown to provide a VB.net version of this code or at least of the StrToNum part. I'll take a look at this shortly. Or if you have partly-working code, send it over and I'll see if I can help out.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Generate XML sitemap for Google

Published 7/19/2007 by Aaron in Downloads
There are many sites that deal with returning a Google sitemap from .NET pages. Most of these need you to adjust the IIS settings (yes this is about Windows hosting).

There are also some that deal with creating a sitemap on-the-fly from the web.sitemap file in your project but here I've included the code to return an XML sitemap that conforms to the Sitemap protocol that you can submit to Google without modifying IIS - something that should interest those of you who are on shared hosting.

The ZIP download is available at the bottom of this article.

Basically if you create a blank ASPX page and clear out all the HTML elements from the ASPX page you will just be left with the <% @Page %> definition. Below is an example of the only line that needs to be in the front file (.ASPX).

For your purposes, just add the ContentType="text/xml" section. It may NOT be necessary once you read through the page-behind code, but I've left it in as it doesn't hurt.

Example:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="XMLSiteMap.aspx.cs" Inherits="XMLSiteMap" ContentType="text/xml" %>


Next you will need to put the GSiteMap.cs file in your App_Code folder.

In the page-behind code, you can then simply call the class and all the work is done for you. The code uses the filesystem (whether it is running locally or on a remote server) to generate the sitemap. It will also return the correct protocol type (http or https) and the port number if not on port 80.

I have used this method before the generate an XML file in the filesystem but since my hosting provider doesn't allow ASPNET to write to the root directory of the site, returning the sitemap on-the-fly is the only truely automated method for this.

In the page-behind's On_Load event:

protected void Page_Load(object sender, EventArgs e){GSitemap _siteMap = new GSitemap();_siteMap.ProcessRequestFS(Context);}


This simply passes the current HTTPContext to the sitemapping class allowing it to replace the Response with your pure XML sitemap.

I won't go into the full code at this point because you can read through it yourself from the download. It's worth pointing out the following however:

private string[] _Allowed_Extensions = { ".aspx", ".php", ".asp", ".htm", ".html", ".txt", ".doc", ".pdf", ".jpg", ".gif", ".xml" };private string[] _Restricted_Directories = { "App_Data", "App_Code", "admin" };


1. Put any extensions you want to be indexed in the "Allowed Extensions" array.

2. Put any directories you don't want indexed in the "Restricted Directories" array.


Where the code pulls a list of files from each directory I initially used a file pattern, ie:

"*." + Extention


but found that some files were being indexed twice - this is because of a flaw in the framework that will return .ASPX files when you ask for .ASP files. For this reason I re-worked the code. It's less efficient this way but it's guaranteed to work.

The call to "ProcessRequestFS" iteratively goes through each directory adding files to the sitemap. If a directory is blocked by the "Restricted Directories" array then all sub-directories of that Directory are also blocked.

You can see an example of the output of this code by visiting: (not currently available)

On my site you may notice that I have temporary removed the optional tags from the sitemap. They are however created in the version available for download.

In particular, the priority tag is automatically down-graded for each directory further down the path that the script has to look.

There is no real error handling in this version but you can add that as necessary.

I checked with Google and Yahoo! and as far as I can see they have no problem with you adding a sitemap with the .ASPX extension.

The full code can be downloaded here: http://www.aaronreynolds.co.uk/page/Code.aspx

If you have any problems using the code, please let me know.

AR

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

AaronReynolds.co.uk

Aaron Reynolds - for C# and VB .NET, HTML, PHP, CSS, ASP, DNS and BIND, Windows Server 2003 etc...