Skip to content

Instantly share code, notes, and snippets.

View sinansh's full-sized avatar

sinansh sinansh

  • Ankara, Turkey
View GitHub Profile
@sinansh
sinansh / foo.py
Created June 30, 2017 08:34
LYK Python/Django kursu başvuru formu
i=0
while(i<10):
if (i < 5) and not(i % 2):
print(i)
elif not(i % 3):
print(i * i)
i+=1
@sinansh
sinansh / xss1.php
Created January 30, 2017 19:51
ctf web challenges
<?php
echo $_GET["name"];
?>
<meta charset="UTF-8">
<?php
$url="http://kutuphane3.omu.edu.tr/nisan2016.htm";
$cek = file_get_contents($url);
preg_match('#<table border="0" cellpadding="0" cellspacing="0" width="100%">(.*?)</table>#s',$cek,$table);
//print_r($table[0]);
preg_match_all('#g">(.*?)</a>#s',$table[0],$baslik);
preg_match_all('#<a href="(.*?)">#s',$table[0],$resim);
preg_match_all('#<i>(.*?)</i>#s',$table[0],$kaynak);
     gitlab_rails['ldap_enabled'] = true
     gitlab_rails['ldap_servers'] = YAML.load <<-'EOS' # remember to close this block with 'EOS' below
        main: # 'main' is the GitLab 'provider ID' of this LDAP server
          label: 'LDAP'
          host: 'mail.example.com'
          port: 389
          uid: 'uid'
          method: 'plain' # "tls" or "ssl" or "plain"
          bind_dn: 'uid=asd,ou=People,dc=example,dc=com'

password: 'cokgizlibisifre'

@sinansh
sinansh / bashrc
Created September 6, 2016 06:05
elementary os rbenv install -> exec $SHELL error
esac export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"