Click here to Skip to main content
Click here to Skip to main content

Removing Strong-Signing from Assemblies at File Level (byte patching)

By , 9 Mar 2013
 
StrongNameRemove.zip
StrongNameRemove.exe
strongnameremove20.zip
StrongNameRemove20.exe
strongnameremove20_src.zip
alert.png
Asmex
decrypted.ico
decrypted.png
folder_blue.png
info.png
ok.png
Properties
Settings.settings
remove.png
vu.ch.argee.MemoryMapping
strongnameremove21.zip
StrongNameRemove.exe
strongnameremove21_src.zip
Settings.settings
Resources
alert.png
folder_explore.png
info.png
ok.png
remove.png
System_Locked.png
Sistema_Locked.ico
StrongNameRemove_src.zip
app.manifest
Other-Power-Lock-Metro.ico
alert.png
folder_explore.png
info.png
ok.png
Other-Power-Lock-Metro-icon.png
remove.png
/***
 * 
 *  ASMEX by RiskCare Ltd.
 * 
 * This source is copyright (C) 2002 RiskCare Ltd. All rights reserved.
 * 
 * Disclaimer:
 * This code is provided 'as is', with absolutely no warranty expressed or
 * implied.  Any use of this code is at your own risk.
 *   
 * You are hereby granted the right to redistribute this source unmodified
 * in its original archive. 
 * You are hereby granted the right to use this code, or code based on it,
 * provided that you acknowledge RiskCare Ltd somewhere in the documentation
 * of your application. 
 * You are hereby granted the right to distribute changes to this source, 
 * provided that:
 * 
 * 1 -- This copyright notice is retained unchanged 
 * 2 -- Your changes are clearly marked 
 * 
 * Enjoy!
 * 
 * --------------------------------------------------------------------
 * 
 * If you use this code or have comments on it, please mail me at 
 * support@jbrowse.com or ben.peterson@riskcare.com
 * 
 */

using System;
using System.Collections;
using Asmex.ObjViewer;

namespace Asmex.FileViewer
{
	/// <summary>
	/// 
	/// </summary>
	public abstract class Region
	{
		long _start;
		long _len;

		public Region()
		{
			
		}

		[ObjViewer(false)]
		public long Start
		{
			get{return _start;}
			set{_start = value;}
		}

		[ObjViewer(false)]
		public long Length
		{
			get{return _len;}
			set{_len = value;}
		}

		[ObjViewer(false)]
		public long End
		{
			get{return _start + _len;}
		}

		public override string ToString()
		{
			return this.GetType().Name + "  {" + _start.ToString("X8") + " - " + (_len + _start).ToString("X8") + "}";
		}

	}

	public abstract class MDHeap : Region, IEnumerable, ICollection
	{

		protected SortedList _data;
		protected string _name;

		public MDHeap()
		{
			_data = new SortedList();
		}

		public object GetByOffset(int i)
		{
			return _data[i];
		}
		
		public int Count
		{
			get{return _data.Count;}
		}

		public void CopyTo(Array arr, int idx)
		{
			for(int i=0; i < _data.Count; ++i)
			{
				arr.SetValue(_data[i], i+idx);
			}
		}

		public object SyncRoot
		{
			get{return null;}
		}

		public bool IsSynchronized
		{
			get{return false;}
		}

		public IEnumerator GetEnumerator()
		{
			return new Enumerator(_data.GetValueList());
		}

		public class Enumerator : IEnumerator
		{
			int _curr;
			IList _data;
		
			public Enumerator(IList data)
			{
				_data = data;
				Reset();
			}	
					
			public void Reset()
			{
				_curr = -1;
			}
					
			public bool MoveNext()
			{
				_curr++;
				return (_curr < _data.Count);
			}
					
			public Object Current
			{
				get { return _data[_curr]; }
			}
		}


		public object this[int idx]
		{
			get
			{
				return _data.GetByIndex(idx);
			}
		}

		public override string ToString()
		{
			return _name + "  {" + Start.ToString("X8") + " - " + (Length + Start).ToString("X8") + "}";
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of use and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Andrea Bertolotto
Software Developer (Senior)
Italy Italy
Member
No Biography provided

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 10 Mar 2013
Article Copyright 2006 by Andrea Bertolotto
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid