Skip to content

Instantly share code, notes, and snippets.

@shoaibjdev
Created June 30, 2017 13:49
Show Gist options
  • Save shoaibjdev/15ffea75e4bedb29512a4dfc53b74cc8 to your computer and use it in GitHub Desktop.
Save shoaibjdev/15ffea75e4bedb29512a4dfc53b74cc8 to your computer and use it in GitHub Desktop.
node socketQueue.js --upstreamHost=localhost --upstreamPort=1337 --listenPort=2014 --vv --logFile=log.txt --dangerous
2017-06-30 16:35:17 - info: Important: starting...
2017-06-30 16:35:17 - info: Remote host configuration name: smartVista
2017-06-30 16:35:17 - info: Connecting to upstream server localhost:1337
2017-06-30 16:35:17 - info: Relay raw ISO-8583 server is now running on port 2014
2017-06-30 16:35:17 - info: Connected to upstream 127.0.0.1:1337!
2017-06-30 16:35:17 - info: Processing queue [pending 0 / total 0]
2017-06-30 16:35:17 - info: The queue is empty
2017-06-30 16:35:19 - info: Client ::1:52898 connected
2017-06-30 16:35:19 - info: Client ::1:52898 sent data (212b)
2017-06-30 16:35:19 - verbose: [02561200F238000500A1800000000000060000001225473102843221000000000001000008010826220777110826220801D00000000010NOT.DEFIBANK.TO.ZAP.............................0012BANK.TO.BANK4041225473313305912254731028432.]
############# Reached before Printing data: 02561200F238000500A1800000000000060000001225473102843221000000000001000008010826220777110826220801D00000000010NOT DEFIBANK TO ZAP 0018BANK TO BANK4041225473313305912254731028432
2017-06-30 16:35:19 - verbose:
::1:52898
================================================================================================
Message Type Indicator [0].......................1200
Bitmap [1].......................................F238000500A180000000000006000000
Primary Account Number [2].......................254731028432
Processing Code [3]..............................210000
Amount, Transaction [4]..........................10000
Transmission Date and Time (MMDDhhmmss) [7]......0801082622
System Trace Audit Number [11]...................077711
Time, Local Transaction (hhmmss) [12]............082622
Date, Local Transaction (MMDD) [13]..............801
Commission [30]..................................D00000000
Acquiring Institution Ident Code [32]............0
Card Acceptor Terminal Identification [41].......NOT DEFI
Card acceptor name/location [43].................BANK TO ZAP
Additional Data [48].............................BANK TO BANK
Currency code, transaction [49]..................404
Account identification 1 [102]...................254733133059
Account identification 2 [103]...................254731028432
================================================================================================
2017-06-30 16:35:19 - info: Writing to queue ::1:52898 [0]
2017-06-30 16:35:19 - info: New queue item 1
2017-06-30 16:35:19 - info: Processing queue [pending 1 / total 1]
2017-06-30 16:35:19 - verbose: Queue keys dump: 1
2017-06-30 16:35:19 - info: Upstreaming data for ::1:52898
2017-06-30 16:35:19 - verbose: [02081200F238000500A1800000000000060000001225473102843221000000000001000008010826220777110826220801D00000000010NOT.DEFIBANK.TO.ZAP.............................0012BANK.TO.BANK4041225473313305912254731028432.]
2017-06-30 16:35:19 - verbose: [30 32 30 38 31 32 30 30 46 32 33 38 30 30 30 35 30 30 41 31 38 30 30 30 30 30 30 30 30 30 30 30 30 36 30 30 30 30 30 30 31 32 32 35 34 37 33 31 30 32 38 34 33 32 32 31 30 30 30 30 30 30 30 30 30 30 30 31 30 30 30 30 30 38 30 31 30 38 32 36 32 32 30 37 37 37 31 31 30 38 32 36 32 32 30 38 30 31 44 30 30 30 30 30 30 30 30 30 31 30 4e 4f 54 20 44 45 46 49 42 41 4e 4b 20 54 4f 20 5a 41 50 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 30 31 38 44 49 41 4d 4f 4e 44 20 54 52 55 53 54 20 42 41 4e 4b 34 30 34 31 32 32 35 34 37 33 33 31 33 33 30 35 39 31 32 32 35 34 37 33 31 30 32 38 34 33 32 0a]
2017-06-30 16:35:19 - info: Got data from ISO-host (84b)
2017-06-30 16:35:19 - verbose: [00801210F000000000000000000000000400000012254731028432210000000000010000100790999957]
2017-06-30 16:35:19 - verbose: [30 30 38 30 31 32 31 30 46 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 34 30 30 30 30 30 30 31 32 32 35 34 37 33 31 30 32 38 34 33 32 32 31 30 30 30 30 30 30 30 30 30 30 30 31 30 30 30 30 31 30 30 37 39 30 39 39 39 39 35 37]
################ Queue Status in upstrea.js: null
2017-06-30 16:35:19 - info: Upstream error: ISO host sent data with no client connected! Ignoring...
ISO host says
================================================================================================
Message Type Indicator [0].......................1210
Bitmap [1].......................................F0000000000000000000000004000000
Primary Account Number [2].......................254731028432
Processing Code [3]..............................210000
Amount, Transaction [4]..........................10000
Account identification 1 [102]...................0790999957
================================================================================================
2017-06-30 16:35:19 - info: Upstream <end>
2017-06-30 16:35:19 - info: Upstream <close>
2017-06-30 16:35:19 - info: Dropping all active clients
2017-06-30 16:35:19 - info: Connecting to upstream server localhost:1337
2017-06-30 16:35:19 - info: Processing queue [pending 0 / total 1]
2017-06-30 16:35:19 - verbose: Queue keys dump: 1
2017-06-30 16:35:19 - info: Socket is not connected yet...
2017-06-30 16:35:19 - info: Connected to upstream 127.0.0.1:1337!
2017-06-30 16:35:19 - info: Processing queue [pending 0 / total 1]
2017-06-30 16:35:19 - verbose: Queue keys dump: 1
2017-06-30 16:35:54 - info: Queue notice: ::1:52898 reached queue timeout
2017-06-30 16:35:54 - verbose: Releasing terminal NOT DEFI with the key 1
2017-06-30 16:35:54 - info: The client ::1:52898 is already gone
2017-06-30 16:35:54 - info: Processing queue [pending 0 / total 0]
2017-06-30 16:35:54 - info: The queue is empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment