View | Details | Raw Unified
Collapse All | Expand All

(-) rainbowcrack-1.2-src/src/ChainWalkContext.cpp (-7 / +1 lines)
 Lines 52-76    Link Here 
		for (i = 0x00; i <= 0xff; i++)
		for (i = 0x00; i <= 0xff; i++)
			m_PlainCharset[i] = i;
			m_PlainCharset[i] = i;
		m_nPlainCharsetLen = 256;
		m_nPlainCharsetLen = 256;
		m_sPlainCharsetName = sName;
		m_sPlainCharsetName = sName;
		m_sPlainCharsetContent = "0x00, 0x01, ... 0xff";
		m_sPlainCharsetContent = "0x00, 0x01, ... 0xff";
		return true;
		return true;
	}
	}
	vector<string> vLine;
	vector<string> vLine;
	if (!ReadLinesFromFile("charset.txt", vLine))
	if (ReadLinesFromFile("charset.txt", vLine))
	{
		ReadLinesFromFile("/usr/share/rainbowcrack/charset.txt", vLine);
		if  (vLine.size()>0)
			printf("Read charset.txt from default /usr/share/rainbowcrack/\n");
	}
	if (vLine.size()>0)
	{
	{
		int i;
		int i;
		for (i = 0; i < vLine.size(); i++)
		for (i = 0; i < vLine.size(); i++)
		{
		{
			// Filter comment
			// Filter comment
			if (vLine[i][0] == '#')
			if (vLine[i][0] == '#')
				continue;
				continue;
			vector<string> vPart;
			vector<string> vPart;