Jump to content

Hi, im currently facing a problem with some python codes i need to run for my assignments. Basicaly i need to recreate a vulnerabilities called openvpn dos (more info here: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-7478). After some searching i find some codes that supposedly do the exploit, but it is on python which im not familiar with (https://www.exploit-db.com/exploits/41993/). Can someone with python knowledge help me understand the code, because upon running it i encountered some errors.

[For he is not of this day, Nor he of this mind]

 

Link to comment
https://linustechtips.com/topic/910737-need-help-with-python-codes/
Share on other sites

Link to post
Share on other sites

6 hours ago, LordAzelion said:

Hi, im currently facing a problem with some python codes i need to run for my assignments. Basicaly i need to recreate a vulnerabilities called openvpn dos (more info here: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-7478). After some searching i find some codes that supposedly do the exploit, but it is on python which im not familiar with (https://www.exploit-db.com/exploits/41993/). Can someone with python knowledge help me understand the code, because upon running it i encountered some errors.

You set host and port at the top then python filename.py. 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

13 hours ago, vorticalbox said:

You set host and port at the top then python filename.py. 

i tried doing that but it doesnt do anything to the server. I setup a virtual machine environment with the server running off ubuntu 17.04. when i check using the service openvpn status it says it still active..

 

[For he is not of this day, Nor he of this mind]

 

Link to post
Share on other sites

17 minutes ago, LordAzelion said:

i tried doing that but it doesnt do anything to the server. I setup a virtual machine environment with the server running off ubuntu 17.04. when i check using the service openvpn status it says it still active..

 

Quote

Note that this issue is fixed in 2.3.15 and 2.4.2.

You could be running a patched version if you enabled updates while installing

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

10 minutes ago, vorticalbox said:

You could be running a patched version if you enabled updates while installing

i have make sure that the installed instance are the 2.4.0. i seems to have found that he problems might be on the firewall settings. i have set some rules using iptables and ufw but still cannot connect to the server. in the client side it will say connection refused. using nc -v ip port command also returns blocked onnection.

[For he is not of this day, Nor he of this mind]

 

Link to post
Share on other sites

4 hours ago, LordAzelion said:

i have make sure that the installed instance are the 2.4.0. i seems to have found that he problems might be on the firewall settings. i have set some rules using iptables and ufw but still cannot connect to the server. in the client side it will say connection refused. using nc -v ip port command also returns blocked onnection.

as you're running in a  VM it might be blocking connections in or you might have it running on a different subnet.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×