Add missing EOF LF

This commit is contained in:
Philippe Teuwen 2019-03-12 00:12:26 +01:00
commit 1b2601a48a
105 changed files with 107 additions and 107 deletions

View file

@ -433,4 +433,4 @@ void RunMod() {
}
}
}
}
}

View file

@ -20,4 +20,4 @@
#define OPTS 2
#endif /* __HF_MATTYRUN_H */
#endif /* __HF_MATTYRUN_H */

View file

@ -259,4 +259,4 @@ void RunMod() {
LED(selected + 1, 0);
}
}
}
}

View file

@ -19,4 +19,4 @@
#define OPTS 2
#endif /* __HF_YOUNG_H */
#endif /* __HF_YOUNG_H */

View file

@ -21,4 +21,4 @@
void hid_corporate_1000_calculate_checksum_and_set(uint32_t *high, uint32_t *low, uint32_t cardnum, uint32_t fc);
#endif /* __LF_HIDBRUTE_H */
#endif /* __LF_HIDBRUTE_H */

View file

@ -164,4 +164,4 @@ void RunMod() {
out:
DbpString("[=] exiting");
LEDsoff();
}
}

View file

@ -18,4 +18,4 @@
#define OPTS 2
#endif /* __LF_PROXBRUTE_H */
#endif /* __LF_PROXBRUTE_H */

View file

@ -138,4 +138,4 @@ void RunMod() {
out:
DbpString("[=] exiting");
LEDsoff();
}
}

View file

@ -19,4 +19,4 @@
#define OPTS 2
#endif /* __LF_SAMYRUN_H */
#endif /* __LF_SAMYRUN_H */

View file

@ -16,4 +16,4 @@
extern void RunMod();
#endif /* __STANDALONE_H */
#endif /* __STANDALONE_H */

View file

@ -1167,4 +1167,4 @@ int main() {
return 0;
}
#endif
#endif

View file

@ -31,4 +31,4 @@ int AesCtxIni(AesCtx *pCtx, unsigned char *pIV, unsigned char *pKey, unsigned in
int AesEncrypt(AesCtx *pCtx, unsigned char *pData, unsigned char *pCipher, unsigned int DataLen);
int AesDecrypt(AesCtx *pCtx, unsigned char *pCipher, unsigned char *pData, unsigned int CipherLen);
#endif
#endif

View file

@ -83,4 +83,4 @@ void Ring_Little_Star(uint16_t count) {
Ring_BEE_TIME(note_1,2*count);
LED_B_ON();
*/
}
}

View file

@ -630,4 +630,4 @@ void mifare_cypher_blocks_chained(desfiretag_t tag, desfirekey_t key, uint8_t *i
mifare_cypher_single_block(key, data + offset, ivect, direction, operation, block_size);
offset += block_size;
}
}
}

View file

@ -152,4 +152,4 @@ void Desfire_session_key_new(const uint8_t rnda[], const uint8_t rndb[], desfire
Desfire_aes_key_new(buffer, key);
break;
}
}
}

View file

@ -17,4 +17,4 @@ void Desfire_aes_key_new_with_version(const uint8_t value[16], uint8_t version,
uint8_t Desfire_key_get_version(desfirekey_t key);
void Desfire_key_set_version(desfirekey_t key, uint8_t version);
void Desfire_session_key_new(const uint8_t rnda[], const uint8_t rndb[], desfirekey_t authkey, desfirekey_t key);
#endif
#endif

View file

@ -151,4 +151,4 @@ void Flashmem_print_status(void);
#endif
#endif

View file

@ -2456,4 +2456,4 @@ void iClass_Clone(uint8_t startblock, uint8_t endblock, uint8_t *data) {
cmd_send(CMD_ACK, 1, 0, 0, 0, 0);
switch_off();
}
}

View file

@ -1634,4 +1634,4 @@ out:
switch_off(); // disconnect raw
SpinDelay(20);
}
}
}

View file

@ -999,4 +999,4 @@ void DirectTag15693Command(uint32_t datalen, uint32_t speed, uint32_t recv, uint
} else {
cmd_send(CMD_ACK, 1, 0, 0, 0, 0);
}
}
}

View file

@ -2098,4 +2098,4 @@ void Mifare_DES_Auth2(uint32_t arg0, uint8_t *datain) {
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
LEDsoff();
set_tracing(false);
}
}

View file

@ -25,4 +25,4 @@
#include "crc.h"
#include "protocols.h"
#include "parity.h"
#endif
#endif

View file

@ -322,4 +322,4 @@ void RAMFUNC MfSniffSend() {
LED_B_ON();
cmd_send(CMD_ACK, 2, 0, 0, 0, 0); // 2 == data transfer finished.
LED_B_OFF();
}
}

View file

@ -39,4 +39,4 @@ bool RAMFUNC MfSniffLogic(const uint8_t *data, uint16_t len, uint8_t *parity, ui
void RAMFUNC MfSniffSend(void);
void MfSniffEnd(void);
#endif
#endif

View file

@ -518,4 +518,4 @@ bool AddPatternPCF7931(uint32_t a, uint32_t b, uint32_t c, uint32_t *tab) {
tab[u + 2] = c + tab[u + 1];
return 0;
}
}

View file

@ -17,4 +17,4 @@ bool AddBitPCF7931(bool b, uint32_t *tab, int32_t l, int32_t p);
bool AddPatternPCF7931(uint32_t a, uint32_t b, uint32_t c, uint32_t *tab);
void WritePCF7931(uint8_t pass1, uint8_t pass2, uint8_t pass3, uint8_t pass4, uint8_t pass5, uint8_t pass6, uint8_t pass7, uint16_t init_delay, int32_t l, int32_t p, uint8_t address, uint8_t byte, uint8_t data);
#endif
#endif

View file

@ -77,4 +77,4 @@ void __attribute__((section(".startos"))) Vector(void) {
AppMain();
}
#endif
#endif

View file

@ -24,4 +24,4 @@ char *strcat(char *dest, const char *src);
void strreverse(char s[]);
void itoa(int n, char s[]);
#endif /* __STRING_H */
#endif /* __STRING_H */

View file

@ -44,4 +44,4 @@ extern void WaitUS(uint16_t us);
extern void WaitMS(uint16_t ms);
extern void StopTicks(void);
#endif
#endif

View file

@ -483,4 +483,4 @@ int CmdrevengSearch(const char *Cmd) {
if (!found) PrintAndLogEx(FAILED, "\nno matches found\n");
return 1;
}
}

View file

@ -42,4 +42,4 @@ extern int CmdFlashMemWipe(const char *Cmd);
extern int CmdFlashMemInfo(const char *Cmd);
#endif
#endif
#endif

View file

@ -1315,4 +1315,4 @@ int CmdHF15(const char *Cmd) {
int CmdHF15Help(const char *Cmd) {
CmdsHelp(CommandTable15);
return 0;
}
}

View file

@ -176,4 +176,4 @@ int CmdHFEPA(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
}
}

View file

@ -609,4 +609,4 @@ int CmdHFFelica(const char *Cmd) {
int CmdHelp(const char *Cmd) {
CmdsHelp(CommandTable);
return 0;
}
}

View file

@ -24,4 +24,4 @@
extern int CmdHFFido(const char *Cmd);
#endif
#endif

View file

@ -1317,4 +1317,4 @@ int CmdHFLegic(const char *Cmd) {
int CmdHelp(const char *Cmd) {
CmdsHelp(CommandTable);
return 0;
}
}

View file

@ -1251,4 +1251,4 @@ uint64_t GetCrypto1ProbableKey(TAuthData *ad) {
crypto1_get_lfsr(revstate, &key);
crypto1_destroy(revstate);
return key;
}
}

View file

@ -2,4 +2,4 @@
static int CmdHelp(const char *Cmd);
int CmdHF14AMfDESAuth(const char *Cmd);
int CmdHFMFDesfire(const char *Cmd);
int CmdHelp(const char *Cmd);
int CmdHelp(const char *Cmd);

View file

@ -15,4 +15,4 @@
extern int CmdHFMFP(const char *Cmd);
#endif
#endif

View file

@ -74,4 +74,4 @@ int CmdRev(const char *Cmd) {
//-----------------------------------------------------------------------------
int CommandReceived(char *Cmd) {
return CmdsParse(CommandTable, Cmd);
}
}

View file

@ -193,4 +193,4 @@ int CmdScript(const char *Cmd) {
int CmdHelp(const char *Cmd) {
PrintAndLogEx(NORMAL, "This is a feature to run Lua-scripts. You can place lua-scripts within the scripts/-folder. ");
return 0;
}
}

View file

@ -40,4 +40,4 @@ extern int usage_sm_raw(void);
extern int usage_sm_reader(void);
extern int usage_sm_info(void);
extern int usage_sm_upgrade(void);
#endif
#endif

View file

@ -38,4 +38,4 @@ extern int JsonLoadBufAsHex(json_t *elm, char *path, uint8_t *data, size_t maxbu
extern bool ParamLoadFromJson(struct tlvdb *tlv);
#endif
#endif

View file

@ -577,4 +577,4 @@ int main(int argc, char *argv[]) {
free_part_sum_bitarrays();
return 0;
}
}

View file

@ -692,4 +692,4 @@ int testElite() {
errors += _test_iclass_key_permutation();
errors += _testBruteforce();
return errors;
}
}

View file

@ -75,4 +75,4 @@ _errorcodes.tostring = function(command)
end
return ("Error, numeric or string argument expected, got : %s"):format(tostring(command))
end
return _errorcodes
return _errorcodes

View file

@ -32,4 +32,4 @@ end
return {
waitForTag = waitForTag,
}
}

View file

@ -91,4 +91,4 @@ local PreCalc =
return list
end,
}
return PreCalc
return PreCalc

View file

@ -155,4 +155,4 @@ local library = {
ISO14B_COMMAND = ISO14B_COMMAND,
}
return library
return library

View file

@ -121,4 +121,4 @@ return {
return m[value] or "no tag-info available"
end,
}
}

View file

@ -427,4 +427,4 @@ local Utils =
-- end
}
return Utils
return Utils

View file

@ -100,4 +100,4 @@ extern int detect_classic_prng(void);
extern int detect_classic_nackbug(bool verbose);
extern void detect_classic_magic(void);
extern void mf_crypto1_decrypt(struct Crypto1State *pcs, uint8_t *data, int len, bool isEncrypted);
#endif
#endif

View file

@ -21,7 +21,7 @@ class TestEmlMfd(unittest.TestCase):
]
def test_eml2mfd(self):
self.three_argument_test(pm3_eml2mfd.main, self.EML2MFD_TESTCASES)
def test_mfd2eml(self):
self.three_argument_test(pm3_mfd2eml.main,
imap(reversed, self.EML2MFD_TESTCASES), c14n=hex_c14n)

View file

@ -939,4 +939,4 @@ static void munpack(model_t *dest, const struct mpreset *src) {
dest->flags = src->flags;
/* link to the name as it is static */
dest->name = (src->alias) ? src->alias->name : NULL;
}
}

View file

@ -19,4 +19,4 @@ extern int scandir(const char *dir, struct dirent ***namelist, int (*select)(con
extern int alphasort(const struct dirent **a, const struct dirent **b);
#endif // _WIN32
#endif // SCANDIR_H__
#endif // SCANDIR_H__

View file

@ -776,4 +776,4 @@ int set_pm3_libraries(lua_State *L) {
strcat(libraries_path, LUA_LIBRARIES_WILDCARD);
setLuaPath(L, libraries_path);
return 1;
}
}

View file

@ -538,4 +538,4 @@ function main(args)
end
-- call main with arguments
main(args)
main(args)

View file

@ -297,4 +297,4 @@ local function main(args)
core.console('hw ping')
end
main(args)
main(args)

View file

@ -173,4 +173,4 @@ local function main(args)
dumptofile( keys )
end
main(args)
main(args)

View file

@ -175,4 +175,4 @@ local function main(args)
print(string.format('PWD | %s', pwd))
end
main(args)
main(args)

View file

@ -194,4 +194,4 @@ local function main(args)
dumptofile( keys )
end
main(args)
main(args)

View file

@ -273,4 +273,4 @@ if "--test"==args then
else
-- Call the main
main(args)
end
end

View file

@ -74,4 +74,4 @@ function main(args)
end
end
main(args)
main(args)

View file

@ -57,4 +57,4 @@ local function main(args)
ExitMsg(("Wrote a BIN dump to the file %s"):format(filename))
end
main(args)
main(args)

View file

@ -64,4 +64,4 @@ In the future, we may implement so that scripts are invoked directly
into a 'main' function, instead of being executed blindly. For future
compatibility, I have done so, but I invoke my main from here.
--]]
main(args)
main(args)

View file

@ -213,4 +213,4 @@ local function main(args)
end
end
main(args)
main(args)

View file

@ -15,4 +15,4 @@ local function main(args)
end
return
end
main(args)
main(args)

View file

@ -62,4 +62,4 @@ In the future, we may implement so that scripts are invoked directly
into a 'main' function, instead of being executed blindly. For future
compatibility, I have done so, but I invoke my main from here.
--]]
main(args)
main(args)

View file

@ -190,4 +190,4 @@ local function main(args)
end
end
main(args)
main(args)

View file

@ -272,4 +272,4 @@ local function main(args)
print('mfkeys - Total execution time: '..os.difftime(end_time, start_time)..' sec')
end
main( args)
main( args)

View file

@ -244,4 +244,4 @@ local function main( args)
prlog(string.format("Dumped data into %s", filename))
end
main(args)
main(args)

View file

@ -380,4 +380,4 @@ local function main(args)
write_tag(uid, t)
end
main(args)
main(args)

View file

@ -42,4 +42,4 @@ In the future, we may implement so that scripts are invoked directly
into a 'main' function, instead of being executed blindly. For future
compatibility, I have done so, but I invoke my main from here.
--]]
main(args)
main(args)

View file

@ -137,4 +137,4 @@ local function main(args)
test()
print( string.rep('--',20) )
end
main(args)
main(args)

View file

@ -137,4 +137,4 @@ local function main(args)
test(7)
print( string.rep('--',20) )
end
main(args)
main(args)

View file

@ -282,4 +282,4 @@ local function main(args)
core.clearCommandBuffer()
end
main(args)
main(args)

View file

@ -486,4 +486,4 @@ local function main(args)
print('The simulation is now prepared.\n --> run \"hf mf sim u '..uid..'\" <--')
end
end
main(args)
main(args)

View file

@ -123,4 +123,4 @@ local function main(args)
print( string.rep('--',20) )
end
main(args)
main(args)

View file

@ -173,4 +173,4 @@ if "--test"==args then
else
-- Call the main
main(args)
end
end

View file

@ -873,4 +873,4 @@ extern char *strmcopy(char *buf) {
strcpy(str, buf);
}
return str;
}
}

View file

@ -263,4 +263,4 @@ extern bool str_startswith(const char *s, const char *pre); // check for prefi
extern void strcleanrn(char *buf, size_t len);
extern void strcreplace(char *buf, size_t len, char from, char to);
extern char *strmcopy(char *buf);
#endif
#endif

View file

@ -16,4 +16,4 @@ void enableAppNap();
void makeUnfocusable();
void makeFocusable();
#endif
#endif

View file

@ -21,4 +21,4 @@ typedef struct bucket_info {
void bucket_sort_intersect(uint32_t *const estart, uint32_t *const estop,
uint32_t *const ostart, uint32_t *const ostop,
bucket_info_t *bucket_info, bucket_array_t bucket);
#endif
#endif

View file

@ -61,4 +61,4 @@ uint8_t cmd_send(uint64_t cmd, uint64_t arg0, uint64_t arg1, uint64_t arg2, void
#endif
return sendlen;
}
}

View file

@ -123,4 +123,4 @@ uint32_t CRC8Legic(uint8_t *buff, size_t size) {
for (int i = 0; i < size; ++i)
crc_update2(&crc, buff[i], 8);
return reflect8(crc_finish(&crc));
}
}

View file

@ -67,4 +67,4 @@ void reset_table(void);
void generate_table(uint16_t polynomial, bool refin);
uint16_t crc16_fast(uint8_t const *d, size_t n, uint16_t initval, bool refin, bool refout);
#endif
#endif

View file

@ -29,4 +29,4 @@ void crc32_ex(const uint8_t *data, const size_t len, uint8_t *crc) {
void crc32_append(uint8_t *data, const size_t len) {
crc32_ex(data, len, data + len);
}
}

View file

@ -80,4 +80,4 @@ void crc64(const uint8_t *data, const size_t len, uint64_t *crc) {
}
}
//suint8_t x = (c & 0xFF00000000000000 ) >> 56;
//suint8_t x = (c & 0xFF00000000000000 ) >> 56;

View file

@ -48,4 +48,4 @@ void SmartCardUpgrade(uint64_t arg0);
void SmartCardSetBaud(uint64_t arg0);
void SmartCardSetClock(uint64_t arg0);
void I2C_print_status(void);
#endif
#endif

View file

@ -22,4 +22,4 @@ char *Iso15693sprintUID(char *target, uint8_t *uid) {
uid[3], uid[2], uid[1], uid[0]
);
return target;
}
}

View file

@ -123,4 +123,4 @@ static const int Iso15693FrameEOF[] = {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
};
#endif
#endif

View file

@ -62,4 +62,4 @@ uint32_t legic_prng_get_bits(uint8_t len) {
legic_prng_forward(1);
}
return a;
}
}

View file

@ -21,4 +21,4 @@ void burtle_init_mod(prng_ctx *x, uint32_t seed);
void burtle_init(prng_ctx *x, uint32_t seed);
uint32_t GetSimplePrng(uint32_t seed);
#endif /* __PRNG_H */
#endif /* __PRNG_H */

View file

@ -96,4 +96,4 @@ uint64_t *radixSort(uint64_t *array, uint32_t size) {
}
free(cpy);
return array;
}
}

View file

@ -20,4 +20,4 @@ typedef union {
} rscounts_t;
uint64_t *radixSort(uint64_t *array, uint32_t size);
#endif // RADIXSORT_H__
#endif // RADIXSORT_H__

View file

@ -18,4 +18,4 @@
void fast_prand();
void fast_prandEx(uint32_t seed);
uint32_t prand();
#endif
#endif

View file

@ -15,4 +15,4 @@
#include <stddef.h>
void tea_encrypt(uint8_t *v, uint8_t *key);
void tea_decrypt(uint8_t *v, uint8_t *key);
#endif /* __TEA_H */
#endif /* __TEA_H */

View file

@ -140,4 +140,4 @@ void usart_init(void) {
// re-enable receiver / transmitter
pUS1->US_CR = (AT91C_US_RXEN | AT91C_US_TXEN);
}
}

View file

@ -949,4 +949,4 @@ void AT91F_CDC_Enumerate() {
AT91F_USB_SendStall(pUdp);
break;
}
}
}

View file

@ -236,4 +236,4 @@ void num_to_wiegand_bits(uint64_t oem, uint64_t fc, uint64_t cn, uint8_t *dest,
default:
break;
}
}
}

Some files were not shown because too many files have changed in this diff Show more