This file contains hidden or 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Maps</title> | |
<style> | |
#map_canvas { | |
width: 500px; | |
height: 400px; | |
} |
This file contains hidden or 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
<?xml version="1.0" encoding='UTF-8'?> | |
<flashmedialiveencoder_profile> | |
<preset> | |
<name>uFame Live</name> | |
<description>For Webcam Streaming</description> | |
</preset> | |
<capture> | |
<video> | |
<device>USB Video Device</device> | |
<crossbar_input>0</crossbar_input> |
This file contains hidden or 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
#!/usr/bin/python | |
import os | |
var=0 | |
while var<10000: | |
var+=1 | |
temp='{0:04}'.format(var) | |
result=os.system('./hackme '+temp) | |
if result==0: | |
print "Found : "+temp | |
break |
This file contains hidden or 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
#/etc/httpd/conf.d/mod_evavsive.conf | |
LoadModule evasive20_module /usr/lib64/httpd/modules/mod_evasive20.so | |
<IfModule mod_evasive20.c> | |
DOSHashTableSize 3097 | |
DOSPageCount 3 | |
DOSSiteCount 100 | |
DOSPageInterval 3 | |
DOSSiteInterval 5 | |
DOSBlockingPeriod 300 |
This file contains hidden or 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
rm $HOME/.mysql_history | |
ln -s /dev/null $HOME/.mysql_history |
This file contains hidden or 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
#/etc/ssh/sshd_config | |
#ec2-user and root uses key file for login | |
Match User ec2-user,root | |
PasswordAuthentication no | |
#testuser uses password for login | |
Match User testuser | |
PasswordAuthentication yes |
This file contains hidden or 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
yum install mod_security | |
service httpd restart |
This file contains hidden or 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
#File: /etc/httpd/conf.d/https_redirection.conf | |
#Force all HTTP request to HTTPS request | |
<IfModule !mod_rewrite.c> | |
LoadModule rewrite_module /usr/lib/apache2-prefork/mod_rewrite.so | |
</IfModule> | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
ReWriteCond %{SERVER_PORT} !^443$ |
This file contains hidden or 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
#!/usr/bin/python | |
import ftplib | |
session = ftplib.FTP('example.com','username','password') | |
file = open('cup.mp4','rb') # file to send | |
session.storbinary('STOR '+'cup.mp4', file) # send the file | |
file.close() # close file and FTP | |
session.quit() |
This file contains hidden or 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
# Conky, a system monitor, based on torsmo | |
# | |
# Any original torsmo code is licensed under the BSD license | |
# | |
# All code written since the fork of torsmo is licensed under the GPL | |
# | |
# Please see COPYING for details | |
# | |
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen | |
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) |