@helm2/poc_jenki_rce 0.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @helm2/poc_jenki_rce might be problematic. Click here for more details.

Files changed (160) hide show
  1. package/LICENSE +19 -0
  2. package/Makefile +18 -0
  3. package/README.md +52 -0
  4. package/binding.gyp +81 -0
  5. package/index.d.ts +273 -0
  6. package/index.js +45 -0
  7. package/lib/bindings.js +1 -0
  8. package/lib/document.js +118 -0
  9. package/lib/element.js +82 -0
  10. package/lib/sax_parser.js +38 -0
  11. package/package.json +70 -0
  12. package/src/html_document.cc +7 -0
  13. package/src/html_document.h +18 -0
  14. package/src/libxmljs.cc +252 -0
  15. package/src/libxmljs.h +53 -0
  16. package/src/xml_attribute.cc +173 -0
  17. package/src/xml_attribute.h +40 -0
  18. package/src/xml_comment.cc +117 -0
  19. package/src/xml_comment.h +30 -0
  20. package/src/xml_document.cc +810 -0
  21. package/src/xml_document.h +67 -0
  22. package/src/xml_element.cc +565 -0
  23. package/src/xml_element.h +61 -0
  24. package/src/xml_namespace.cc +158 -0
  25. package/src/xml_namespace.h +39 -0
  26. package/src/xml_node.cc +761 -0
  27. package/src/xml_node.h +73 -0
  28. package/src/xml_pi.cc +161 -0
  29. package/src/xml_pi.h +34 -0
  30. package/src/xml_sax_parser.cc +424 -0
  31. package/src/xml_sax_parser.h +73 -0
  32. package/src/xml_syntax_error.cc +66 -0
  33. package/src/xml_syntax_error.h +25 -0
  34. package/src/xml_text.cc +320 -0
  35. package/src/xml_text.h +48 -0
  36. package/src/xml_textwriter.cc +315 -0
  37. package/src/xml_textwriter.h +62 -0
  38. package/src/xml_xpath_context.cc +70 -0
  39. package/src/xml_xpath_context.h +23 -0
  40. package/vendor/libxml/Copyright +23 -0
  41. package/vendor/libxml/DOCBparser.c +305 -0
  42. package/vendor/libxml/HTMLparser.c +7287 -0
  43. package/vendor/libxml/HTMLtree.c +1200 -0
  44. package/vendor/libxml/Makefile +2983 -0
  45. package/vendor/libxml/SAX.c +180 -0
  46. package/vendor/libxml/SAX2.c +3036 -0
  47. package/vendor/libxml/buf.c +1351 -0
  48. package/vendor/libxml/buf.h +72 -0
  49. package/vendor/libxml/c14n.c +2234 -0
  50. package/vendor/libxml/catalog.c +3828 -0
  51. package/vendor/libxml/chvalid.c +336 -0
  52. package/vendor/libxml/config.h +294 -0
  53. package/vendor/libxml/config.h.gch +0 -0
  54. package/vendor/libxml/debugXML.c +3423 -0
  55. package/vendor/libxml/dict.c +1298 -0
  56. package/vendor/libxml/elfgcchack.h +17818 -0
  57. package/vendor/libxml/enc.h +32 -0
  58. package/vendor/libxml/encoding.c +3975 -0
  59. package/vendor/libxml/entities.c +1163 -0
  60. package/vendor/libxml/error.c +998 -0
  61. package/vendor/libxml/globals.c +1126 -0
  62. package/vendor/libxml/hash.c +1146 -0
  63. package/vendor/libxml/include/libxml/DOCBparser.h +96 -0
  64. package/vendor/libxml/include/libxml/HTMLparser.h +306 -0
  65. package/vendor/libxml/include/libxml/HTMLtree.h +147 -0
  66. package/vendor/libxml/include/libxml/Makefile +725 -0
  67. package/vendor/libxml/include/libxml/Makefile.am +54 -0
  68. package/vendor/libxml/include/libxml/Makefile.in +725 -0
  69. package/vendor/libxml/include/libxml/SAX.h +173 -0
  70. package/vendor/libxml/include/libxml/SAX2.h +178 -0
  71. package/vendor/libxml/include/libxml/c14n.h +128 -0
  72. package/vendor/libxml/include/libxml/catalog.h +182 -0
  73. package/vendor/libxml/include/libxml/chvalid.h +230 -0
  74. package/vendor/libxml/include/libxml/debugXML.h +217 -0
  75. package/vendor/libxml/include/libxml/dict.h +79 -0
  76. package/vendor/libxml/include/libxml/encoding.h +245 -0
  77. package/vendor/libxml/include/libxml/entities.h +151 -0
  78. package/vendor/libxml/include/libxml/globals.h +508 -0
  79. package/vendor/libxml/include/libxml/hash.h +236 -0
  80. package/vendor/libxml/include/libxml/list.h +137 -0
  81. package/vendor/libxml/include/libxml/nanoftp.h +163 -0
  82. package/vendor/libxml/include/libxml/nanohttp.h +81 -0
  83. package/vendor/libxml/include/libxml/parser.h +1243 -0
  84. package/vendor/libxml/include/libxml/parserInternals.h +644 -0
  85. package/vendor/libxml/include/libxml/pattern.h +100 -0
  86. package/vendor/libxml/include/libxml/relaxng.h +217 -0
  87. package/vendor/libxml/include/libxml/schemasInternals.h +958 -0
  88. package/vendor/libxml/include/libxml/schematron.h +142 -0
  89. package/vendor/libxml/include/libxml/threads.h +89 -0
  90. package/vendor/libxml/include/libxml/tree.h +1311 -0
  91. package/vendor/libxml/include/libxml/uri.h +94 -0
  92. package/vendor/libxml/include/libxml/valid.h +458 -0
  93. package/vendor/libxml/include/libxml/xinclude.h +129 -0
  94. package/vendor/libxml/include/libxml/xlink.h +189 -0
  95. package/vendor/libxml/include/libxml/xmlIO.h +368 -0
  96. package/vendor/libxml/include/libxml/xmlautomata.h +146 -0
  97. package/vendor/libxml/include/libxml/xmlerror.h +945 -0
  98. package/vendor/libxml/include/libxml/xmlexports.h +77 -0
  99. package/vendor/libxml/include/libxml/xmlmemory.h +224 -0
  100. package/vendor/libxml/include/libxml/xmlmodule.h +57 -0
  101. package/vendor/libxml/include/libxml/xmlreader.h +428 -0
  102. package/vendor/libxml/include/libxml/xmlregexp.h +222 -0
  103. package/vendor/libxml/include/libxml/xmlsave.h +88 -0
  104. package/vendor/libxml/include/libxml/xmlschemas.h +246 -0
  105. package/vendor/libxml/include/libxml/xmlschemastypes.h +151 -0
  106. package/vendor/libxml/include/libxml/xmlstring.h +140 -0
  107. package/vendor/libxml/include/libxml/xmlunicode.h +202 -0
  108. package/vendor/libxml/include/libxml/xmlversion.h +484 -0
  109. package/vendor/libxml/include/libxml/xmlwin32version.h +239 -0
  110. package/vendor/libxml/include/libxml/xmlwriter.h +488 -0
  111. package/vendor/libxml/include/libxml/xpath.h +564 -0
  112. package/vendor/libxml/include/libxml/xpathInternals.h +632 -0
  113. package/vendor/libxml/include/libxml/xpointer.h +114 -0
  114. package/vendor/libxml/include/win32config.h +122 -0
  115. package/vendor/libxml/include/wsockcompat.h +54 -0
  116. package/vendor/libxml/legacy.c +1343 -0
  117. package/vendor/libxml/libxml.h +134 -0
  118. package/vendor/libxml/list.c +779 -0
  119. package/vendor/libxml/nanoftp.c +2118 -0
  120. package/vendor/libxml/nanohttp.c +1899 -0
  121. package/vendor/libxml/parser.c +15553 -0
  122. package/vendor/libxml/parserInternals.c +2164 -0
  123. package/vendor/libxml/pattern.c +2621 -0
  124. package/vendor/libxml/relaxng.c +11101 -0
  125. package/vendor/libxml/rngparser.c +1595 -0
  126. package/vendor/libxml/runsuite.c +1157 -0
  127. package/vendor/libxml/save.h +36 -0
  128. package/vendor/libxml/schematron.c +1787 -0
  129. package/vendor/libxml/threads.c +1049 -0
  130. package/vendor/libxml/timsort.h +601 -0
  131. package/vendor/libxml/tree.c +10183 -0
  132. package/vendor/libxml/trio.c +6895 -0
  133. package/vendor/libxml/trio.h +230 -0
  134. package/vendor/libxml/triodef.h +228 -0
  135. package/vendor/libxml/trionan.c +914 -0
  136. package/vendor/libxml/trionan.h +84 -0
  137. package/vendor/libxml/triop.h +150 -0
  138. package/vendor/libxml/triostr.c +2112 -0
  139. package/vendor/libxml/triostr.h +144 -0
  140. package/vendor/libxml/uri.c +2561 -0
  141. package/vendor/libxml/valid.c +7138 -0
  142. package/vendor/libxml/xinclude.c +2657 -0
  143. package/vendor/libxml/xlink.c +183 -0
  144. package/vendor/libxml/xmlIO.c +4135 -0
  145. package/vendor/libxml/xmlcatalog.c +624 -0
  146. package/vendor/libxml/xmllint.c +3796 -0
  147. package/vendor/libxml/xmlmemory.c +1163 -0
  148. package/vendor/libxml/xmlmodule.c +468 -0
  149. package/vendor/libxml/xmlreader.c +6033 -0
  150. package/vendor/libxml/xmlregexp.c +8271 -0
  151. package/vendor/libxml/xmlsave.c +2735 -0
  152. package/vendor/libxml/xmlschemas.c +29173 -0
  153. package/vendor/libxml/xmlschemastypes.c +6276 -0
  154. package/vendor/libxml/xmlstring.c +1050 -0
  155. package/vendor/libxml/xmlunicode.c +3179 -0
  156. package/vendor/libxml/xmlwriter.c +4738 -0
  157. package/vendor/libxml/xpath.c +14734 -0
  158. package/vendor/libxml/xpointer.c +2969 -0
  159. package/vendor/libxml/xzlib.c +815 -0
  160. package/vendor/libxml/xzlib.h +19 -0
@@ -0,0 +1,114 @@
1
+ /*
2
+ * Summary: API to handle XML Pointers
3
+ * Description: API to handle XML Pointers
4
+ * Base implementation was made accordingly to
5
+ * W3C Candidate Recommendation 7 June 2000
6
+ * http://www.w3.org/TR/2000/CR-xptr-20000607
7
+ *
8
+ * Added support for the element() scheme described in:
9
+ * W3C Proposed Recommendation 13 November 2002
10
+ * http://www.w3.org/TR/2002/PR-xptr-element-20021113/
11
+ *
12
+ * Copy: See Copyright for the status of this software.
13
+ *
14
+ * Author: Daniel Veillard
15
+ */
16
+
17
+ #ifndef __XML_XPTR_H__
18
+ #define __XML_XPTR_H__
19
+
20
+ #include <libxml/xmlversion.h>
21
+
22
+ #ifdef LIBXML_XPTR_ENABLED
23
+
24
+ #include <libxml/tree.h>
25
+ #include <libxml/xpath.h>
26
+
27
+ #ifdef __cplusplus
28
+ extern "C" {
29
+ #endif
30
+
31
+ /*
32
+ * A Location Set
33
+ */
34
+ typedef struct _xmlLocationSet xmlLocationSet;
35
+ typedef xmlLocationSet *xmlLocationSetPtr;
36
+ struct _xmlLocationSet {
37
+ int locNr; /* number of locations in the set */
38
+ int locMax; /* size of the array as allocated */
39
+ xmlXPathObjectPtr *locTab;/* array of locations */
40
+ };
41
+
42
+ /*
43
+ * Handling of location sets.
44
+ */
45
+
46
+ XMLPUBFUN xmlLocationSetPtr XMLCALL
47
+ xmlXPtrLocationSetCreate (xmlXPathObjectPtr val);
48
+ XMLPUBFUN void XMLCALL
49
+ xmlXPtrFreeLocationSet (xmlLocationSetPtr obj);
50
+ XMLPUBFUN xmlLocationSetPtr XMLCALL
51
+ xmlXPtrLocationSetMerge (xmlLocationSetPtr val1,
52
+ xmlLocationSetPtr val2);
53
+ XMLPUBFUN xmlXPathObjectPtr XMLCALL
54
+ xmlXPtrNewRange (xmlNodePtr start,
55
+ int startindex,
56
+ xmlNodePtr end,
57
+ int endindex);
58
+ XMLPUBFUN xmlXPathObjectPtr XMLCALL
59
+ xmlXPtrNewRangePoints (xmlXPathObjectPtr start,
60
+ xmlXPathObjectPtr end);
61
+ XMLPUBFUN xmlXPathObjectPtr XMLCALL
62
+ xmlXPtrNewRangeNodePoint (xmlNodePtr start,
63
+ xmlXPathObjectPtr end);
64
+ XMLPUBFUN xmlXPathObjectPtr XMLCALL
65
+ xmlXPtrNewRangePointNode (xmlXPathObjectPtr start,
66
+ xmlNodePtr end);
67
+ XMLPUBFUN xmlXPathObjectPtr XMLCALL
68
+ xmlXPtrNewRangeNodes (xmlNodePtr start,
69
+ xmlNodePtr end);
70
+ XMLPUBFUN xmlXPathObjectPtr XMLCALL
71
+ xmlXPtrNewLocationSetNodes (xmlNodePtr start,
72
+ xmlNodePtr end);
73
+ XMLPUBFUN xmlXPathObjectPtr XMLCALL
74
+ xmlXPtrNewLocationSetNodeSet(xmlNodeSetPtr set);
75
+ XMLPUBFUN xmlXPathObjectPtr XMLCALL
76
+ xmlXPtrNewRangeNodeObject (xmlNodePtr start,
77
+ xmlXPathObjectPtr end);
78
+ XMLPUBFUN xmlXPathObjectPtr XMLCALL
79
+ xmlXPtrNewCollapsedRange (xmlNodePtr start);
80
+ XMLPUBFUN void XMLCALL
81
+ xmlXPtrLocationSetAdd (xmlLocationSetPtr cur,
82
+ xmlXPathObjectPtr val);
83
+ XMLPUBFUN xmlXPathObjectPtr XMLCALL
84
+ xmlXPtrWrapLocationSet (xmlLocationSetPtr val);
85
+ XMLPUBFUN void XMLCALL
86
+ xmlXPtrLocationSetDel (xmlLocationSetPtr cur,
87
+ xmlXPathObjectPtr val);
88
+ XMLPUBFUN void XMLCALL
89
+ xmlXPtrLocationSetRemove (xmlLocationSetPtr cur,
90
+ int val);
91
+
92
+ /*
93
+ * Functions.
94
+ */
95
+ XMLPUBFUN xmlXPathContextPtr XMLCALL
96
+ xmlXPtrNewContext (xmlDocPtr doc,
97
+ xmlNodePtr here,
98
+ xmlNodePtr origin);
99
+ XMLPUBFUN xmlXPathObjectPtr XMLCALL
100
+ xmlXPtrEval (const xmlChar *str,
101
+ xmlXPathContextPtr ctx);
102
+ XMLPUBFUN void XMLCALL
103
+ xmlXPtrRangeToFunction (xmlXPathParserContextPtr ctxt,
104
+ int nargs);
105
+ XMLPUBFUN xmlNodePtr XMLCALL
106
+ xmlXPtrBuildNodeList (xmlXPathObjectPtr obj);
107
+ XMLPUBFUN void XMLCALL
108
+ xmlXPtrEvalRangePredicate (xmlXPathParserContextPtr ctxt);
109
+ #ifdef __cplusplus
110
+ }
111
+ #endif
112
+
113
+ #endif /* LIBXML_XPTR_ENABLED */
114
+ #endif /* __XML_XPTR_H__ */
@@ -0,0 +1,122 @@
1
+ #ifndef __LIBXML_WIN32_CONFIG__
2
+ #define __LIBXML_WIN32_CONFIG__
3
+
4
+ #define HAVE_CTYPE_H
5
+ #define HAVE_STDARG_H
6
+ #define HAVE_MALLOC_H
7
+ #define HAVE_ERRNO_H
8
+ #define SEND_ARG2_CAST
9
+ #define GETHOSTBYNAME_ARG_CAST
10
+
11
+ #if defined(_WIN32_WCE)
12
+ #undef HAVE_ERRNO_H
13
+ #include "wincecompat.h"
14
+ #else
15
+ #define HAVE_SYS_STAT_H
16
+ #define HAVE_STAT
17
+ #define HAVE_STDLIB_H
18
+ #define HAVE_TIME_H
19
+ #define HAVE_FCNTL_H
20
+ #include <io.h>
21
+ #include <direct.h>
22
+ #endif
23
+
24
+ #include <libxml/xmlversion.h>
25
+
26
+ #ifndef ICONV_CONST
27
+ #define ICONV_CONST const
28
+ #endif
29
+
30
+ /*
31
+ * Windows platforms may define except
32
+ */
33
+ #undef except
34
+
35
+ #define HAVE_ISINF
36
+ #define HAVE_ISNAN
37
+ #include <math.h>
38
+ #if defined(_MSC_VER) || defined(__BORLANDC__)
39
+ /* MS C-runtime has functions which can be used in order to determine if
40
+ a given floating-point variable contains NaN, (+-)INF. These are
41
+ preferred, because floating-point technology is considered proprietary
42
+ by MS and we can assume that their functions know more about their
43
+ oddities than we do. */
44
+ #include <float.h>
45
+ /* Bjorn Reese figured a quite nice construct for isinf() using the _fpclass
46
+ function. */
47
+ #ifndef isinf
48
+ #define isinf(d) ((_fpclass(d) == _FPCLASS_PINF) ? 1 \
49
+ : ((_fpclass(d) == _FPCLASS_NINF) ? -1 : 0))
50
+ #endif
51
+ /* _isnan(x) returns nonzero if (x == NaN) and zero otherwise. */
52
+ #ifndef isnan
53
+ #define isnan(d) (_isnan(d))
54
+ #endif
55
+ #else /* _MSC_VER */
56
+ #ifndef isinf
57
+ static int isinf (double d) {
58
+ int expon = 0;
59
+ double val = frexp (d, &expon);
60
+ if (expon == 1025) {
61
+ if (val == 0.5) {
62
+ return 1;
63
+ } else if (val == -0.5) {
64
+ return -1;
65
+ } else {
66
+ return 0;
67
+ }
68
+ } else {
69
+ return 0;
70
+ }
71
+ }
72
+ #endif
73
+ #ifndef isnan
74
+ static int isnan (double d) {
75
+ int expon = 0;
76
+ double val = frexp (d, &expon);
77
+ if (expon == 1025) {
78
+ if (val == 0.5) {
79
+ return 0;
80
+ } else if (val == -0.5) {
81
+ return 0;
82
+ } else {
83
+ return 1;
84
+ }
85
+ } else {
86
+ return 0;
87
+ }
88
+ }
89
+ #endif
90
+ #endif /* _MSC_VER */
91
+
92
+ #if defined(_MSC_VER)
93
+ #define mkdir(p,m) _mkdir(p)
94
+ #if _MSC_VER < 1900
95
+ #define snprintf _snprintf
96
+ #endif
97
+ #if _MSC_VER < 1500
98
+ #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
99
+ #endif
100
+ #elif defined(__MINGW32__)
101
+ #define mkdir(p,m) _mkdir(p)
102
+ #endif
103
+
104
+ /* Threading API to use should be specified here for compatibility reasons.
105
+ This is however best specified on the compiler's command-line. */
106
+ #if defined(LIBXML_THREAD_ENABLED)
107
+ #if !defined(HAVE_PTHREAD_H) && !defined(HAVE_WIN32_THREADS) && !defined(_WIN32_WCE)
108
+ #define HAVE_WIN32_THREADS
109
+ #endif
110
+ #endif
111
+
112
+ /* Some third-party libraries far from our control assume the following
113
+ is defined, which it is not if we don't include windows.h. */
114
+ #if !defined(FALSE)
115
+ #define FALSE 0
116
+ #endif
117
+ #if !defined(TRUE)
118
+ #define TRUE (!(FALSE))
119
+ #endif
120
+
121
+ #endif /* __LIBXML_WIN32_CONFIG__ */
122
+
@@ -0,0 +1,54 @@
1
+ /* include/wsockcompat.h
2
+ * Windows -> Berkeley Sockets compatibility things.
3
+ */
4
+
5
+ #if !defined __XML_WSOCKCOMPAT_H__
6
+ #define __XML_WSOCKCOMPAT_H__
7
+
8
+ #ifdef _WIN32_WCE
9
+ #include <winsock.h>
10
+ #else
11
+ #include <errno.h>
12
+ #include <winsock2.h>
13
+
14
+ /* Fix for old MinGW. */
15
+ #ifndef _WINSOCKAPI_
16
+ #define _WINSOCKAPI_
17
+ #endif
18
+
19
+ /* the following is a workaround a problem for 'inline' keyword in said
20
+ header when compiled with Borland C++ 6 */
21
+ #if defined(__BORLANDC__) && !defined(__cplusplus)
22
+ #define inline __inline
23
+ #define _inline __inline
24
+ #endif
25
+
26
+ #include <ws2tcpip.h>
27
+
28
+ /* Check if ws2tcpip.h is a recent version which provides getaddrinfo() */
29
+ #if defined(GetAddrInfo)
30
+ #include <wspiapi.h>
31
+ #define HAVE_GETADDRINFO
32
+ #endif
33
+ #endif
34
+
35
+ #undef XML_SOCKLEN_T
36
+ #define XML_SOCKLEN_T int
37
+
38
+ #ifndef ECONNRESET
39
+ #define ECONNRESET WSAECONNRESET
40
+ #endif
41
+ #ifndef EINPROGRESS
42
+ #define EINPROGRESS WSAEINPROGRESS
43
+ #endif
44
+ #ifndef EINTR
45
+ #define EINTR WSAEINTR
46
+ #endif
47
+ #ifndef ESHUTDOWN
48
+ #define ESHUTDOWN WSAESHUTDOWN
49
+ #endif
50
+ #ifndef EWOULDBLOCK
51
+ #define EWOULDBLOCK WSAEWOULDBLOCK
52
+ #endif
53
+
54
+ #endif /* __XML_WSOCKCOMPAT_H__ */