head	1.2;
access;
symbols
	RELEASE_8_3_0:1.1
	RELEASE_9_0_0:1.1
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1;
locks; strict;
comment	@# @;


1.2
date	2012.11.17.06.01.23;	author svnexp;	state Exp;
branches;
next	1.1;

1.1
date	2007.12.17.20.33.59;	author edwin;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Switch exporter over
@
text
@# New ports collection makefile for:	xorsearch
# Date created:				18 December 2007
# Whom:				Edwin Groothuis <edwin@@mavetju.org>
#
# $FreeBSD: head/security/xorsearch/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	xorsearch
PORTVERSION=	1.2.0
CATEGORIES=	security textproc
MASTER_SITES=	http://www.didierstevens.com/files/software/
DISTNAME=	XORSearch_V1_2_0

MAINTAINER=	edwin@@mavetju.org
COMMENT=	Search for a given string in an XOR or ROL encoded binary file

USE_ZIP=	yes
WRKSRC=		${WRKDIR}

PLIST_FILES=	bin/xorsearch

do-build:
	${CC} -o ${WRKDIR}/XORSearch ${WRKDIR}/XORSearch.c

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/XORSearch ${PREFIX}/bin/xorsearch

.include <bsd.port.mk>
@


1.1
log
@XORSearch

XORSearch is a program to search for a given string in an XOR or
ROL encoded binary file. An XOR encoded binary file is a file where
some (or all) bytes have been XORed with a constant value (the key).
A ROL (or ROR) encoded file has it bytes rotated by a certain number
of bits (the key). XOR and ROL/ROR encoding is used by malware
programmers to obfuscate strings like URLs.

XORSearch will try all XOR keys (0 to 255) and ROL keys (1 to 7)
when searching. I programmed XORSearch to include key 0, because
this allows to search in an unencoded binary file (X XOR 0 equals
X).

If the search string is found, XORSearch will print it until the 0
(byte zero) is encountered or until 50 characters have been printed,
which ever comes first. 50 is the default value, it can be changed
with option -l. Unprintable characters are replaced by a dot.

WWW: http://blog.didierstevens.com/programs/xorsearch/
Author: Didier Stevens
@
text
@d5 1
a5 1
# $FreeBSD$
@

