Socket
Socket
Sign inDemoInstall

iptreader

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.2.0

25

lib/iptreader.js

@@ -76,3 +76,3 @@ #!/usr/bin/env node

if(endMatches.length == 0) return null;
var end = endMatches[0] + licenseEnd.length + 2;

@@ -90,3 +90,3 @@

var matches = [];
var matches = [];

@@ -169,3 +169,3 @@ for (var i = start; i < haystack.length; i++) {

var la = license.readUInt32LE(p.pos); // read 4 bytes (8*4=32)
if(la == 0x1F){

@@ -175,10 +175,4 @@ var str = readString(license, p);

}else{
// p.pos+=4;
// licenseParts.push('0x' + pad(la.toString(16).toUpperCase(),8));
for (var i = 0; i < 4; i++) {
var la = license.readUInt8(p.pos); p.pos+=1;
licenseParts.push('0x' + pad(la.toString(16).toUpperCase(),2));
};
p.pos+=4;
licenseParts.push('0x' + pad(la.toString(16).toUpperCase(),8));
}

@@ -204,5 +198,4 @@ }

var buffer = new Buffer(1);
buffer.writeUInt8(value, 0);
var buffer = new Buffer(4);
buffer.writeUInt32LE(value, 0);

@@ -220,5 +213,5 @@ buffers.push(buffer);

buffer.write(str, 8, str.length*2, 'utf16le');
buffer.writeUInt32LE(0x00000000, 8 + str.length*2); //pad with 4 zeros
buffers.push(buffer);

@@ -225,0 +218,0 @@ }

{
"name": "iptreader",
"description": "iptreader is a node.js library to read and change the license of IPT-files (Autodesk Inventor files)",
"version": "0.1.0",
"version": "0.2.0",
"author": {

@@ -6,0 +6,0 @@ "name": "Sam Decrock",

@@ -19,13 +19,8 @@ # Autodesk Inventor License Reader

var someLicense = [
'Some Name',
'0x00',
'0x00',
'0x00',
'0x00',
'0x00',
'0x00',
'0x00',
'0x00',
'0x00',
'Some Build Number'
'Name',
'0x00000000',
'0x00000000',
'0x00000000',
'0x00000000',
'Some Buildnumber'
];

@@ -32,0 +27,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc