- 파이썬3 에서 동작합니다.
- requests, beautifulsoup4 라이브러리가 필요합니다.
pip install requests beautifulsoup4
import os, sys | |
import win32api | |
DIRNAME = "F:\\Dropbox\\Action\\HACKLAB\\CodeEngn-AAV" | |
def show_cacls (dirname): | |
for line in os.popen ("cacls %s" % dirname).read ().splitlines (): | |
print line |
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import base64 | |
input_bs64 = open("location2.zip.bs64",'r') | |
output_zip = open("location2.zip",'w') | |
base64.decode(input_bs64, output_zip) |
dz> list | |
app.activity.forintent Find activities that can handle the given intent | |
app.activity.info Gets information about exported activities. | |
app.activity.start Start an Activity | |
app.broadcast.info Get information about broadcast receivers | |
app.broadcast.send Send broadcast using an intent | |
app.broadcast.sniff Register a broadcast receiver that can sniff | |
particular intents | |
app.package.attacksurface Get attack surface of package | |
app.package.backup Lists packages that use the backup API (returns |
dz> help app.activity.start | |
usage: run app.activity.start [-h] [--action ACTION] [--category CATEGORY [CATEGORY ...]] | |
[--component PACKAGE COMPONENT] [--data-uri DATA_URI] | |
[--extra TYPE KEY VALUE] [--flags FLAGS [FLAGS ...]] | |
[--mimetype MIMETYPE] | |
Starts an Activity using the formulated intent. | |
Examples: | |
Start the Browser with an explicit intent: |
dz> help app.provider.query | |
usage: run app.provider.query [-h] [--projection [columns [columns ...]]] | |
[--selection conditions] [--selection-args [arg [arg ...]]] | |
[--order by_column] [--vertical] | |
uri | |
Query a content provider | |
Examples: | |
Querying the settings content provider: |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
#!/bin/sh | |
if [ $# -eq 1 ] | |
then | |
if [ "$1" = "spoof" ] | |
then | |
sudo ifconfig en0 ether # Your iPhone MAC Adress | |
echo "spoof to iphone MAC address" | |
elif [ "$1" = "origin" ] | |
then |
"use strict"; | |
var input = '13자리의 주민번호 - 없이'; | |
var mul = [2,3,4,5,6,7,8,9,2,3,4,5]; | |
var sum = 0; | |
for(var i =0; i < mul.length; i++) { | |
var digit = parseInt(input[i]); | |
sum += digit * mul[i]; | |
} |
import os | |
import docx | |
from docx.document import Document | |
from docx.oxml.table import CT_Tbl | |
from docx.oxml.text.paragraph import CT_P | |
from docx.table import _Cell, Table | |
from docx.text.paragraph import Paragraph | |
os.chdir('C:\\OJT_Kevin\\161027_docx_parsing') |