Skip to content

Instantly share code, notes, and snippets.

View akawashiro's full-sized avatar

Akira Kawata akawashiro

View GitHub Profile
if __name__ == '__main__':
print(10 + "hello")
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
@akawashiro
akawashiro / gist:69fd35cf0a369992f2b0dfcd84085807
Created October 13, 2018 07:17
なんかよくわかんないけどmysqlのエラーで落ちた
Traceback (most recent call last):
File "/kearch/packages/kearch_common/kearch_common/requester.py", line 194, in request_sql
post_webpage_to_db(db, cur, webpage)
File "/kearch/packages/kearch_common/kearch_common/requester.py", line 84, in post_webpage_to_db
cur.execute(statement, record)
File "/usr/local/lib/python3.6/site-packages/mysql/connector/cursor.py", line 559, in execute
self._handle_result(self._connection.cmd_query(stmt))
File "/usr/local/lib/python3.6/site-packages/mysql/connector/connection.py", line 494, in cmd_query
result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
File "/usr/local/lib/python3.6/site-packages/mysql/connector/connection.py", line 396, in _handle_result
(module
(import "host" "print" (func $print_f32 (param f32)))
(import "host" "print" (func $print_i32 (param i32)))
(memory 65536)
(table 6 anyfunc)
(func $def_fun_andb_0 (param $val_b1_20 i32) (param $val_b2_21 i32) (param $cls_fun_andb_0 i32) (result i32)
(local $stack_top_var i32)
(get_local $val_b1_20)
(if (result i32)
(i32.eqz)
let rec andb b1 b2 =
if b1
then if b2
then true
else false
else false in
let rec abs f =
if 0.0 <. f
then f
package main
import "fmt"
func ping(msg chan string, p *int) {
msg <- "ping"
*p = 200
}
func main() {
package main
import(
"fmt"
"math/rand"
"time"
)
func main() {
rand.Seed(time.Now().UnixNano())
from pwn import *
import struct
import sys
def string_addr_to_bytes(addr, offset):
return struct.pack('<L', int(addr, 16) + offset)
if __name__ == '__main__':
io = process('./vuln')
Application: ksmserver-logout-greeter (ksmserver-logout-greeter), signal: Aborted
[KCrash Handler]
#4 0x00007f5689957355 in raise () from /usr/lib/libc.so.6
#5 0x00007f5689940853 in abort () from /usr/lib/libc.so.6
#6 0x00007f5689d509ac in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/libQt5Core.so.5
#7 0x00007f568b70e7a9 in QSGRenderLoop::handleContextCreationFailure(QQuickWindow*) () from /usr/lib/libQt5Quick.so.5
#8 0x00007f568b70fd10 in ?? () from /usr/lib/libQt5Quick.so.5
#9 0x00007f568b7114ca in ?? () from /usr/lib/libQt5Quick.so.5
#10 0x00007f568a359955 in QWindow::event(QEvent*) () from /usr/lib/libQt5Gui.so.5
#! /bin/bash
# This shellscript find all shared object which contains the specified symbol.
sym=$1
sos=`ldconfig -p | awk -F '=>' '{print $2}' | grep so | sort | uniq`
for s in ${sos}
do
PRE_IFS=$IFS