Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.18 KB | None | 0 0
  1. (env)☁ bandit [mako] ⚡ bandit examples/false_negative.py
  2. INCORRECT!!!!!!!!
  3. <_ast.Attribute object at 0x1056314d0>
  4. <_ast.Attribute object at 0x1056314d0>
  5. id: None
  6. name: None
  7. <_ast.Name object at 0x1056315d0>
  8. id: mako
  9. name: None
  10. <_ast.Load object at 0x10532c190>
  11. id: None
  12. name: None
  13. <_ast.Load object at 0x10532c190>
  14. id: None
  15. name: None
  16. Template
  17. ['Template'] Template
  18. ('__class__', <class '_ast.Call'>)
  19. ('__delattr__', <method-wrapper '__delattr__' of Call object at 0x105631310>)
  20. ('__dict__', {'col_offset': 0, 'starargs': None, 'args': [<_ast.Str object at 0x105631710>], 'lineno': 2, 'func': <_ast.Attribute object at 0x1056312d0>, 'kwargs': None, 'keywords': []})
  21. ('__doc__', None)
  22. ('__format__', <built-in method __format__ of Call object at 0x105631310>)
  23. ('__getattribute__', <method-wrapper '__getattribute__' of Call object at 0x105631310>)
  24. ('__hash__', <method-wrapper '__hash__' of Call object at 0x105631310>)
  25. ('__init__', <method-wrapper '__init__' of Call object at 0x105631310>)
  26. ('__module__', '_ast')
  27. ('__new__', <built-in method __new__ of type object at 0x1050b3e00>)
  28. ('__reduce__', <built-in method __reduce__ of Call object at 0x105631310>)
  29. ('__reduce_ex__', <built-in method __reduce_ex__ of Call object at 0x105631310>)
  30. ('__repr__', <method-wrapper '__repr__' of Call object at 0x105631310>)
  31. ('__setattr__', <method-wrapper '__setattr__' of Call object at 0x105631310>)
  32. ('__sizeof__', <built-in method __sizeof__ of Call object at 0x105631310>)
  33. ('__str__', <method-wrapper '__str__' of Call object at 0x105631310>)
  34. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fb46d3dc340>)
  35. ('__weakref__', None)
  36. ('_attributes', ('lineno', 'col_offset'))
  37. ('_fields', ('func', 'args', 'keywords', 'starargs', 'kwargs'))
  38. ('args', [<_ast.Str object at 0x105631710>])
  39. ('col_offset', 0)
  40. ('func', <_ast.Attribute object at 0x1056312d0>)
  41. ('keywords', [])
  42. ('kwargs', None)
  43. ('lineno', 2)
  44. ('starargs', None)
  45.  
  46. ('__class__', <class '_ast.Attribute'>)
  47. ('__delattr__', <method-wrapper '__delattr__' of Attribute object at 0x1056312d0>)
  48. ('__dict__', {'col_offset': 0, 'ctx': <_ast.Load object at 0x10532c190>, 'attr': 'Template', 'value': <_ast.Attribute object at 0x1056314d0>, 'lineno': 2})
  49. ('__doc__', None)
  50. ('__format__', <built-in method __format__ of Attribute object at 0x1056312d0>)
  51. ('__getattribute__', <method-wrapper '__getattribute__' of Attribute object at 0x1056312d0>)
  52. ('__hash__', <method-wrapper '__hash__' of Attribute object at 0x1056312d0>)
  53. ('__init__', <method-wrapper '__init__' of Attribute object at 0x1056312d0>)
  54. ('__module__', '_ast')
  55. ('__new__', <built-in method __new__ of type object at 0x1050b3e00>)
  56. ('__reduce__', <built-in method __reduce__ of Attribute object at 0x1056312d0>)
  57. ('__reduce_ex__', <built-in method __reduce_ex__ of Attribute object at 0x1056312d0>)
  58. ('__repr__', <method-wrapper '__repr__' of Attribute object at 0x1056312d0>)
  59. ('__setattr__', <method-wrapper '__setattr__' of Attribute object at 0x1056312d0>)
  60. ('__sizeof__', <built-in method __sizeof__ of Attribute object at 0x1056312d0>)
  61. ('__str__', <method-wrapper '__str__' of Attribute object at 0x1056312d0>)
  62. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fb46d3dd680>)
  63. ('__weakref__', None)
  64. ('_attributes', ('lineno', 'col_offset'))
  65. ('_fields', ('value', 'attr', 'ctx'))
  66. ('attr', 'Template')
  67. ('col_offset', 0)
  68. ('ctx', <_ast.Load object at 0x10532c190>)
  69. ('lineno', 2)
  70. ('value', <_ast.Attribute object at 0x1056314d0>)
  71.  
  72. ('__class__', <class '_ast.Str'>)
  73. ('__delattr__', <method-wrapper '__delattr__' of Str object at 0x105631710>)
  74. ('__dict__', {'s': 'hern', 'lineno': 2, 'col_offset': 23})
  75. ('__doc__', None)
  76. ('__format__', <built-in method __format__ of Str object at 0x105631710>)
  77. ('__getattribute__', <method-wrapper '__getattribute__' of Str object at 0x105631710>)
  78. ('__hash__', <method-wrapper '__hash__' of Str object at 0x105631710>)
  79. ('__init__', <method-wrapper '__init__' of Str object at 0x105631710>)
  80. ('__module__', '_ast')
  81. ('__new__', <built-in method __new__ of type object at 0x1050b3e00>)
  82. ('__reduce__', <built-in method __reduce__ of Str object at 0x105631710>)
  83. ('__reduce_ex__', <built-in method __reduce_ex__ of Str object at 0x105631710>)
  84. ('__repr__', <method-wrapper '__repr__' of Str object at 0x105631710>)
  85. ('__setattr__', <method-wrapper '__setattr__' of Str object at 0x105631710>)
  86. ('__sizeof__', <built-in method __sizeof__ of Str object at 0x105631710>)
  87. ('__str__', <method-wrapper '__str__' of Str object at 0x105631710>)
  88. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fb46d3dd1b0>)
  89. ('__weakref__', None)
  90. ('_attributes', ('lineno', 'col_offset'))
  91. ('_fields', ('s',))
  92. ('col_offset', 23)
  93. ('lineno', 2)
  94. ('s', 'hern')
  95.  
  96. ('__class__', <class '_ast.Attribute'>)
  97. ('__delattr__', <method-wrapper '__delattr__' of Attribute object at 0x1056314d0>)
  98. ('__dict__', {'col_offset': 0, 'ctx': <_ast.Load object at 0x10532c190>, 'attr': 'template', 'value': <_ast.Name object at 0x1056315d0>, 'lineno': 2})
  99. ('__doc__', None)
  100. ('__format__', <built-in method __format__ of Attribute object at 0x1056314d0>)
  101. ('__getattribute__', <method-wrapper '__getattribute__' of Attribute object at 0x1056314d0>)
  102. ('__hash__', <method-wrapper '__hash__' of Attribute object at 0x1056314d0>)
  103. ('__init__', <method-wrapper '__init__' of Attribute object at 0x1056314d0>)
  104. ('__module__', '_ast')
  105. ('__new__', <built-in method __new__ of type object at 0x1050b3e00>)
  106. ('__reduce__', <built-in method __reduce__ of Attribute object at 0x1056314d0>)
  107. ('__reduce_ex__', <built-in method __reduce_ex__ of Attribute object at 0x1056314d0>)
  108. ('__repr__', <method-wrapper '__repr__' of Attribute object at 0x1056314d0>)
  109. ('__setattr__', <method-wrapper '__setattr__' of Attribute object at 0x1056314d0>)
  110. ('__sizeof__', <built-in method __sizeof__ of Attribute object at 0x1056314d0>)
  111. ('__str__', <method-wrapper '__str__' of Attribute object at 0x1056314d0>)
  112. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fb46d3dd680>)
  113. ('__weakref__', None)
  114. ('_attributes', ('lineno', 'col_offset'))
  115. ('_fields', ('value', 'attr', 'ctx'))
  116. ('attr', 'template')
  117. ('col_offset', 0)
  118. ('ctx', <_ast.Load object at 0x10532c190>)
  119. ('lineno', 2)
  120. ('value', <_ast.Name object at 0x1056315d0>)
  121.  
  122. ('__class__', <class '_ast.Load'>)
  123. ('__delattr__', <method-wrapper '__delattr__' of Load object at 0x10532c190>)
  124. ('__dict__', {})
  125. ('__doc__', None)
  126. ('__format__', <built-in method __format__ of Load object at 0x10532c190>)
  127. ('__getattribute__', <method-wrapper '__getattribute__' of Load object at 0x10532c190>)
  128. ('__hash__', <method-wrapper '__hash__' of Load object at 0x10532c190>)
  129. ('__init__', <method-wrapper '__init__' of Load object at 0x10532c190>)
  130. ('__module__', '_ast')
  131. ('__new__', <built-in method __new__ of type object at 0x1050b3e00>)
  132. ('__reduce__', <built-in method __reduce__ of Load object at 0x10532c190>)
  133. ('__reduce_ex__', <built-in method __reduce_ex__ of Load object at 0x10532c190>)
  134. ('__repr__', <method-wrapper '__repr__' of Load object at 0x10532c190>)
  135. ('__setattr__', <method-wrapper '__setattr__' of Load object at 0x10532c190>)
  136. ('__sizeof__', <built-in method __sizeof__ of Load object at 0x10532c190>)
  137. ('__str__', <method-wrapper '__str__' of Load object at 0x10532c190>)
  138. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fb46d3df660>)
  139. ('__weakref__', None)
  140. ('_attributes', ())
  141. ('_fields', ())
  142.  
  143. ('__class__', <class '_ast.Name'>)
  144. ('__delattr__', <method-wrapper '__delattr__' of Name object at 0x1056315d0>)
  145. ('__dict__', {'ctx': <_ast.Load object at 0x10532c190>, 'id': 'mako', 'col_offset': 0, 'lineno': 2})
  146. ('__doc__', None)
  147. ('__format__', <built-in method __format__ of Name object at 0x1056315d0>)
  148. ('__getattribute__', <method-wrapper '__getattribute__' of Name object at 0x1056315d0>)
  149. ('__hash__', <method-wrapper '__hash__' of Name object at 0x1056315d0>)
  150. ('__init__', <method-wrapper '__init__' of Name object at 0x1056315d0>)
  151. ('__module__', '_ast')
  152. ('__new__', <built-in method __new__ of type object at 0x1050b3e00>)
  153. ('__reduce__', <built-in method __reduce__ of Name object at 0x1056315d0>)
  154. ('__reduce_ex__', <built-in method __reduce_ex__ of Name object at 0x1056315d0>)
  155. ('__repr__', <method-wrapper '__repr__' of Name object at 0x1056315d0>)
  156. ('__setattr__', <method-wrapper '__setattr__' of Name object at 0x1056315d0>)
  157. ('__sizeof__', <built-in method __sizeof__ of Name object at 0x1056315d0>)
  158. ('__str__', <method-wrapper '__str__' of Name object at 0x1056315d0>)
  159. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fb46d3de020>)
  160. ('__weakref__', None)
  161. ('_attributes', ('lineno', 'col_offset'))
  162. ('_fields', ('id', 'ctx'))
  163. ('col_offset', 0)
  164. ('ctx', <_ast.Load object at 0x10532c190>)
  165. ('id', 'mako')
  166. ('lineno', 2)
  167.  
  168. ('__class__', <class '_ast.Load'>)
  169. ('__delattr__', <method-wrapper '__delattr__' of Load object at 0x10532c190>)
  170. ('__dict__', {})
  171. ('__doc__', None)
  172. ('__format__', <built-in method __format__ of Load object at 0x10532c190>)
  173. ('__getattribute__', <method-wrapper '__getattribute__' of Load object at 0x10532c190>)
  174. ('__hash__', <method-wrapper '__hash__' of Load object at 0x10532c190>)
  175. ('__init__', <method-wrapper '__init__' of Load object at 0x10532c190>)
  176. ('__module__', '_ast')
  177. ('__new__', <built-in method __new__ of type object at 0x1050b3e00>)
  178. ('__reduce__', <built-in method __reduce__ of Load object at 0x10532c190>)
  179. ('__reduce_ex__', <built-in method __reduce_ex__ of Load object at 0x10532c190>)
  180. ('__repr__', <method-wrapper '__repr__' of Load object at 0x10532c190>)
  181. ('__setattr__', <method-wrapper '__setattr__' of Load object at 0x10532c190>)
  182. ('__sizeof__', <built-in method __sizeof__ of Load object at 0x10532c190>)
  183. ('__str__', <method-wrapper '__str__' of Load object at 0x10532c190>)
  184. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fb46d3df660>)
  185. ('__weakref__', None)
  186. ('_attributes', ())
  187. ('_fields', ())
  188.  
  189. ('__class__', <class '_ast.Load'>)
  190. ('__delattr__', <method-wrapper '__delattr__' of Load object at 0x10532c190>)
  191. ('__dict__', {})
  192. ('__doc__', None)
  193. ('__format__', <built-in method __format__ of Load object at 0x10532c190>)
  194. ('__getattribute__', <method-wrapper '__getattribute__' of Load object at 0x10532c190>)
  195. ('__hash__', <method-wrapper '__hash__' of Load object at 0x10532c190>)
  196. ('__init__', <method-wrapper '__init__' of Load object at 0x10532c190>)
  197. ('__module__', '_ast')
  198. ('__new__', <built-in method __new__ of type object at 0x1050b3e00>)
  199. ('__reduce__', <built-in method __reduce__ of Load object at 0x10532c190>)
  200. ('__reduce_ex__', <built-in method __reduce_ex__ of Load object at 0x10532c190>)
  201. ('__repr__', <method-wrapper '__repr__' of Load object at 0x10532c190>)
  202. ('__setattr__', <method-wrapper '__setattr__' of Load object at 0x10532c190>)
  203. ('__sizeof__', <built-in method __sizeof__ of Load object at 0x10532c190>)
  204. ('__str__', <method-wrapper '__str__' of Load object at 0x10532c190>)
  205. ('__subclasshook__', <built-in method __subclasshook__ of type object at 0x7fb46d3df660>)
  206. ('__weakref__', None)
  207. ('_attributes', ())
  208. ('_fields', ())
  209.  
  210.  
  211.  
  212.  
  213.  
  214. Run started:
  215. 2015-03-02 20:46:52.502916
  216.  
  217. Files in scope (1):
  218. examples/false_negative.py (score: 0)
  219.  
  220. Files excluded (0):
  221.  
  222. Files skipped (0):
  223.  
  224. Test results:
  225. No issues identified.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement