Skip to content

Instantly share code, notes, and snippets.

View vletoux's full-sized avatar

vletoux

View GitHub Profile
@@ -2696,10 +2696,11 @@ sc_pkcs15_get_object_guid(struct sc_pkcs15_card *p15card, const struct sc_pkcs15
struct sc_context *ctx = p15card->card->ctx;
struct sc_serial_number serialnr;
struct sc_pkcs15_id id;
unsigned char guid_bin[SC_PKCS15_MAX_ID_SIZE + SC_MAX_SERIALNR];
int rv;
+ int inputSize;
LOG_FUNC_CALLED(ctx);
if(!out || !out_size)
@vletoux
vletoux / pinpad modify patch.patch
Created April 17, 2015 14:19
patch to part10_build_modify_pin_block in reader-pcsc.c
@@ -1493,12 +1493,12 @@ static int part10_build_modify_pin_block(struct sc_reader *reader, u8 * buf, siz
else
pin_modify->bNumberMessage = 0x00; /* No messages */
/* Ignore language and T=1 parameters. */
pin_modify->wLangId = HOST_TO_CCID_16(0x0000);
- pin_modify->bMsgIndex1 = 0x00; /* Default message indexes */
- pin_modify->bMsgIndex2 = 0x01;
+ pin_modify->bMsgIndex1 = (data->flags & SC_PIN_CMD_IMPLICIT_CHANGE ? 0x01: 0x00); /* Default message indexes */
+ pin_modify->bMsgIndex2 = (data->flags & SC_PIN_CMD_IMPLICIT_CHANGE ? 0x02: 0x01);
{
"swagger":"2.0",
"info":{
"version":"v1",
"title":"PingCastle API"
},
"paths":{
"/api/Agent/Login":{
"post":{
"tags":[
This file has been truncated, but you can view the full file.
P:3096; T:3988 2020-12-30 12:02:45.055 [cardmod] ===================================
P:3096; T:3988 2020-12-30 12:02:45.055 [cardmod] opensc version: 0.21.0-0.21.0
P:3096; T:3988 2020-12-30 12:02:45.055 [cardmod] PC/SC options: connect_exclusive=0 disconnect_action=0 transaction_end_action=0 reconnect_action=0 enable_pinpad=1 enable_pace=1
P:3096; T:3988 2020-12-30 12:02:45.055 [cardmod] reader-pcsc.c:1374:pcsc_detect_readers: called
P:3096; T:3988 2020-12-30 12:02:45.055 [cardmod] reader-pcsc.c:1556:pcsc_detect_readers: returning with: -1209 (Not allowed)
P:3096; T:3988 2020-12-30 12:02:45.055 [cardmod] sc context created
P:3096; T:3988 2020-12-30 12:02:45.055 [cardmod] MD_Function:associate_card:7020 called
P:3096; T:3988 2020-12-30 12:02:45.055 [cardmod] ctx.c:896:sc_ctx_use_reader: called
P:3096; T:3988 2020-12-30 12:02:45.055 [cardmod] reader-pcsc.c:2507:pcsc_use_reader: called
P:3096; T:3988 2020-12-30 12:02:45.055 [cardmod] Probing PC/SC reader
Received: from AM9PR03MB7140.eurprd03.prod.outlook.com (2603:10a6:20b:2d8::7)
by PA4PR03MB7453.eurprd03.prod.outlook.com with HTTPS; Fri, 25 Dec 2020
04:31:15 +0000
Received: from AS8PR04CA0218.eurprd04.prod.outlook.com (2603:10a6:20b:2f2::13)
by AM9PR03MB7140.eurprd03.prod.outlook.com (2603:10a6:20b:2d8::7) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27; Fri, 25 Dec
2020 04:31:13 +0000
Received: from VE1EUR02FT027.eop-EUR02.prod.protection.outlook.com
(2603:10a6:20b:2f2:cafe::dd) by AS8PR04CA0218.outlook.office365.com
@vletoux
vletoux / TheHive inject javascript
Created February 1, 2022 11:23
Disable in the main page livefeed & stat in index.html (cached by default)
<Location /index.html >
SetOutputFilter Sed
OutputSed "s-<script-<SCRIPT>a=localStorage.getItem('th4.case.list');if(a!=null){b=JSON.parse(a);b.showStats=false;localStorage.setItem('th4.case.list',JSON.stringify(b))}a=localStorage.getItem('th4.app\\-layout');if(a!=null){b=JSON.parse(a);b.showFlow=false;localStorage.setItem('th4.app\\-layout',JSON.stringify(b))}</SCRIPT><script-g"
</Location>