Giter VIP home page Giter VIP logo

ulg's People

Contributors

freddy36 avatar prauscher avatar tmshlvck avatar uixp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ulg's Issues

tests.py failed.

Traceback (most recent call last):
File "tests.py", line 289, in <module>
runTest(testULGAction(routerid=0,commandid=0,sessionid=None,maxtimes=10,interval=5,**{}))
File "tests.py", line 86, in testULGAction
if(re.compile("refresh",re.M).search(u.renderULGResult(sessionid=sessionid))):
File "/usr/home/dikshie/public_html/ulg/ulg.py", line 618, in renderULGResult
result_text = session.getDecoratedResult(self.decorator_helper,session.getRange(),session.isFinished())
File "/usr/home/dikshie/public_html/ulg/ulg.py", line 167, in getDecoratedResult
dr = self.getCommand().decorateResult(self,decorator_helper)
File "/usr/home/dikshie/public_html/ulg/ulgcisco.py", line 427, in decorateResult
table.append(self._decorateTableLine(l,decorator_helper,session.getRouter()))
File "/usr/home/dikshie/public_html/ulg/ulgcisco.py", line 402, in _decorateTableLine
raise Exception("Can not parse line: "+line)
Exception: Can not parse line: 2001:D30:101:1::11

XSS in Whois

If my whois-information contain HTML (and as such, escaped javascript-code), they do not get escaped before getting printed.
E.g. http://bgp.freifunk-bielefeld.de/ulg/ulg.py => show routing table ebgp for 172.22.120.0/26 => click on AS64720 and get a nice and pretty javascript-alert ;)

Pickling Error

Hi,

While trying to get the universal looking glass running I receive this error:

File "/var/www/ulg/ulgcisco.py", line 817, in init
self.loadBGPPeers()

File "/var/www/ulg/ulgcisco.py", line 890, in loadBGPPeers
self.rescanHook()

File "/var/www/ulg/ulgcisco.py", line 858, in rescanHook
self.saveBGPPeers()

File "/var/www/ulg/ulgcisco.py", line 879, in saveBGPPeers
ps.save()

File "/var/www/ulg/ulgmodel.py", line 73, in save
pickle.dump(self, f)

File "/usr/lib/python2.7/pickle.py", line 1370, in dump
Pickler(file, protocol).dump(obj)

File "/usr/lib/python2.7/pickle.py", line 224, in dump
self.save(obj)

File "/usr/lib/python2.7/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)

File "/usr/lib/python2.7/pickle.py", line 401, in save_reduce
save(args)

File "/usr/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self

File "/usr/lib/python2.7/pickle.py", line 562, in save_tuple
save(element)

File "/usr/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self

File "/usr/lib/python2.7/pickle.py", line 748, in save_global
(obj, module, name))

PicklingError: Can't pickle <class '_mp_02a9032141b4a629bb688456b2673ce7.PersistentStorage'>: it's not found as _mp_02a9032141b4a629bb688456b2673ce7.PersistentStorage

Where mp_02a9032141b4a629bb688456b2673ce7 is ulgmodel.py. If i attempt to reload after that error I get another one as a result in the corrupted ulg.data that is created during the first try.

ulg.data looks like this:
ccopy_reg
_reconstructor
p0
(

Any help would be greatly appreciated.

support for IOS-XR based Ciscos

the current version gives an error when trying to access an IOS-XR based Cisco Router (ASR9k in our case):
<type 'exceptions.Exception'>: pexpect session failed: Connection timeout.
args = ('pexpect session failed: Connection timeout.',)
message = 'pexpect session failed: Connection timeout.'

This is when the website is called initially. If we can be of any help in testing/debugging please get in contact with me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.