ã©ãããã¾ãã¨ããï¼@0310lanï¼ã§ãï¼ ä»åã¯ãããã³ãã¨ã³ãã«ããéçãªWebãã¼ã¸ã ãã§ãªããNode.jsãªã©ã®ãµã¼ããµã¤ããå«ããåçãªWebã¢ããªãç¡æã§ãã¹ãã£ã³ã°ãã¦ããããµã¼ãã¹ããç´¹ä»ãã¾ãã GitHubã®ãªãã¸ããªã¨é£æºãããã¨ã§ãã¨ã«ããWebã¢ããªãå ¬éããã¾ã§ã®ä½æ¥ãç°¡åãã¤é«éã«å®ç¾ã§ããã®ã大ããªç¹å¾´ã§ãã ãµã¼ãã¬ã¹ã«ããå®è¡ãå¯è½ãªã®ã§ããèå³ããæ¹ã¯ãã²åèã«ãã¦ã¿ã¦ãã ããï¼ ã Unubo ã â ãUnuboãã®ä½¿ãæ¹ ããã§ã¯ããUnuboããã©ã®ããã«ä½¿ã£ã¦ããã°è¯ãã®ãè¦ã¦ããã¾ãããï¼ ã¾ãã¯ããµã¤ãã«ã¢ã¯ã»ã¹ããããSIGN UPããã¿ã³ãã¯ãªãã¯ãã¾ãã ç¡æã®ã¦ã¼ã¶ã¼ç»é²ç»é¢ã表示ãããã®ã§ãã¦ã¼ã¶ã¼åã»ã¡ã¼ã«ã¢ãã¬ã¹ã»ãã¹ã¯ã¼ããå ¥åãã¾ãããã ç»é²ããã¡ã¼ã«ã¢ãã¬ã¹å®ã«ãªã³ã¯ãéããã¦ããã®ã§ããããã¯ãªãã¯ããã°ç»é²å®äº
I am writing a project in Django and I see that 80% of the code is in the file models.py. This code is confusing and, after a certain time, I cease to understand what is really happening. Here is what bothers me: I find it ugly that my model level (which was supposed to be responsible only for the work with data from a database) is also sending email, walking on API to other services, etc. Also, I
ãªãã¸ã§ã¯ãæåã®åå¦è ã§ãããã¼ã¿ã¢ãã«ï¼ãçæããã¯ã©ã¹ã®å½åã«å°ã£ã¦ãã¾ãã 以ä¸ã®ãããªãã¢ãã«ã®çæã»ç·¨éã»åé¤ãªã©ãããã¯ã©ã¹ã®ãã¨ã¯ãªãã¸ã§ã¯ãæåã§ã¯ãªãã¨å¼ã¶ã®ã§ããããï¼ã¾ãããããããªãã¸ã§ã¯ãæåã®ã¯ã©ã¹ã®è²¬ä»»ã®åãæ¹ãå¦ã¶ããã«ã¯ä½ãåç §ããã®ãããã§ããããã # ãã®ã¯ã©ã¹ã"ãã¼ã¿ã¢ãã«"ã§ãã Class User(): self.name = "" self.age = 0 # ãã®ã¯ã©ã¹ã®å½åã«æ©ãã§ãã¾ãã Class UserFromDatabase(): self.db = DBClient() def make_user(): data = self.db.create({table: "user"}) return User(data) def get_user(id): data = self.db.get({table: "user",
ããã«ã¡ã¯çè ã§ããRaspberryPiã¨L-02Cã«ãããã¾ãã¦å¿ é ã¨æãããPingãéä¿¡ãã¦ç¢ºèªããããã°ã©ã ãä½ãããã¨æãã¾ãã pypingã使ã Pythonã§pingãéãããã®ãªãosã使ããsubprocessã使ããã®ã©ã¡ããã ãã ã¨æã£ã¦ãããå®ã¯pypingã¨ãããã®ãããããããã·ã³ãã«ã§ç°¡åãªã®ã§ä»åã¯ãã¡ãã試ãã¦ã¿ãã pipã§pypingãã¤ã³ã¹ãã¼ã«ããã $sudo pip install pyping ã好ããªã¨ãã£ã¿(viã¨ãnanoã¨ã)ã使ã£ã¦ping.pyãä½ãã¾ãããã®æ§æã§ã¯å°éã確èªãããã®ã§ãã $vi ping.py #!/usr/bin/python # -*- coding: utf-8 -*- import pyping #確èªãããã¢ãã¬ã¹ host = "192.168.11.1" RPing = pyping.pin
ã¯ããã« Pythonã§Pingãæ㤠joblibã§ä¸¦åå¦ç ã¯ããã« ãããã©ã¤ãã¼ããããã¯ã¼ã¯ã®ä¸ã«åå¨ããã¯ã©ã¤ã¢ã³ãã«pingãæã¡ã常æç£è¦ãããã¼ã«ã欲ããã£ãã ã¡ã¼ã«ã§ã®éç¥ã¨ããåããã¥ããã®ã§ããããªéç¥ã®æ¹æ³ã使ãããã£ãï¼ä»åã¯Line Botã§éç¥ï¼ã è¯ãããªãã¼ã«ãç¡ãã£ãã®ã§èªåã§ããã°ã©ã ãæ¸ãã¦å®ç¾ãããã¨ã«ãã Pythonã§Pingãæ㤠pythonã§ã¯subprocessã使ãã°pingãæã¦ããããã§ãã qiita.com ãã®é¢æ°ããåããã¦pingãæã¡ã¾ãã import subprocess def is_connectable(host): ping = subprocess.Popen(["ping", "-w", "3", "-c", "1", host], stdin=subprocess.PIPE, stdout=sub
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? ##è¿½è¨ 2017/09/21ï¼http pingãæã¦ãããã«æ©è½ã追å ãã¾ãããkwskã¯ã¤ã«ã golangçExpingãpexpoãã«http pingã®è¿½å ã¨ãã®å®è£ ã ##pexpo https://github.com/nnao45/pexpo ##ã©ããããã¼ã«ãªã®ãã é¡åã«ããããããªãExpingçãªãã®ãgolangã§terminalä¸ã§åãã¢ããªã«æãä¸ããããã®ã§ãã ã¨ã¦ã軽ããIPv6ã対å¿ãã¦ãããpingã®intervalã500msã¾ã§ãªããã£ããã¨æã¦ã¾ãã windows,Mac,Linuxç
ããã¾ã§ã®ããã¡ãã åè¨äº:golangçExpingãpexpoããæ¸ãã¾ããã -Hãããã¯-Sãã¤ããã¨pexpoãhttp pingã¢ã¼ãã«ãªãã¾ãã -Hãhttp ping, -Sãhttps pingã§ã-H, -S両æ¹ä½¿ãã¨ping-listã«ãã®ã©ã£ã¡ãæ··ãã£ã¦ã¦ãã¤ã±ã¾ãã https://github.com/nnao45/pexpo ãã追å æ©è½ãªã®ï¼ ä»äºä¸ã«ãã¼ããã©ã³ãµã®çå確èªã¨ããã«ã¹ãã§ãã¯ããæãå¥ã«ãããªAPIã®ãã¹ãã¨ãããããã§ããªãããæ¯åcurlã®é·ãã¯ã³ã©ã¤ãã¼ãæ¸ãã®ãé¢åã ãªã»ã»ã»ã¨æã£ãæã«pexpoãcurlãã¦ããããããããããããoã¨ãxã¨ãå ¥ãã¦ãã¨ãã¡ããã©åè§ä¸æåãããï¼ã¨æã£ãã®ã§ã curlãªã®ï¼ ãããgoã§ãï¼execã§curlãªãã使ã£ããäºææ§ãã¹ãã¼ããã¿ã¤ã ã¢ã¦ãæ©è½ãç¡ããªã£ã¦ãã¾ãç¬ï¼ãfastp
ã¢ã¼ããã¯ã㣠Java ã®java.net.HttpURLConnectionã¯ã©ã¹ãã¾ãã¯javax.net.ssl.HttpsURLConnectionã¯ã©ã¹ã使ã£ã Web ã¯ã©ã¤ã¢ã³ãã§ãã 使ãæ¹(ãã¦ã³ãã¼ãã¨ã¤ã³ã¹ãã¼ã«) webGetter.jar (Java ã«ããæ±ç¨ HTTP ã¯ã©ã¤ã¢ã³ã) ããwebGetter.lzhããã¦ã³ãã¼ããã¦ãZoneIDãåé¤ãã¦ã解åããã°ã使ããã usage C:\>webGetter.bat usage: java webGetter url [options] -ProxyHost <<Hostname>> -ProxyPort <<proxyPort>> default:No_Proxy -ProxyType [socks|http](default:http) -Header <<string(aaa:bbb)>> -
A curated list of awesome Hacking Tools. If you want to contribute to this list send me a pull request. 0trace 1.5 A hop enumeration tool http://jon.oberheide.org/0trace/ 3proxy 0.7.1.1 Tiny free proxy server. http://3proxy.ru/ 3proxy-win32 0.7.1.1 Tiny free proxy server. http://3proxy.ru/ 42zip 42 Recursive Zip archive bomb. http://blog.fefe.de/?ts=b6cea88d acccheck 0.2.1 A password dictionary at
ããã«ã¡ã¯ãã¨ã³ã¸ãã¢ãªã³ã°ã°ã«ã¼ãã®ç¦æ (@fukubaya) ã§ãã å æãããä»å¹´ã®ç§ãããã«ãªãªã¼ã¹äºå®ã®æ°ãµã¼ãã¹ã®è¨è¨ãéçºãå§ãã¾ããã ãã£ããæ°ããå§ãããµã¼ãã¹ãªã®ã§ãã¾ã çµé¨ãããã¨ããªãè¨èªããã¬ã¼ã ã¯ã¼ã¯ãæè¡ã使ããªãã¨æ¥½ããããã¾ããã ããã§ãããã¯ã¨ã³ãã«Goã«ãã¦ãããã³ãã®APIã¾ã§å«ãã¦gRPCã® .proto ãã¡ã¤ã«ã§å®ç¾©ãä¸å åããAPIã³ã¼ã㯠protoc ã§çæãããè¨ç»ãç«ã¦ã¦ããã®ã§ããã ããã³ãã§gRPCã¨ãªãã¨ã gRPC-web ã grpc-gateway ã«ãªããããªãªã¼ã¹ã¾ã§ã«ä½¿ããæéã§ã¯èªè¨¼ãå«ããã¨æ¤è¨¼ãéã«åããªããã Goã ãã§ãªããterraform(ã¤ã³ãã©è¨è¨ãããã¾ã) ã Vue.jsãä»åãåãã¦ãã¨ããã¡ã³ãã¼ããããããã«RESTã§ã¯ãªãgRPCããã¨ãªãã¨æªçµé¨æè¡ãå¤ããã¦ãã£ããã¢ããã
Rustã®ãã¨ãå°ãã§ãç¥ãããã«ã¹ãã£ã³ãã¼ã«ãä½æãããã¨æãã¾ãã ããã¦Rustã«åã®ãã¨ãç¥ã£ã¦ãããããã¨æãã¾ãã ã¡ãªã¿ã«ã«ã¼ãã£ã³ã°ãã¹ãã£ã³ãããã¼ã«ã¯ä»¥åã«ä½ã£ããã¨ãããã¾ãã ãã¡ãã¯cè¨èªã§ä½ãã¾ããã ããã¨åããã¨ãRustã§ããã¨ãããã¨ã§ãã ã¤ã¾ãåååæ§icmpã使ã£ã¦æ¤è¨¼ãã¾ãã å¿ è¦ãªãã®ãæãã å½ç¶ãªããpnetã§ãã Rustã§ãããã¯ã¼ã¯ã«é¢ãã¦ä½ã¬ã¤ã¤ãªãã¨ããããå ´åãpnetã使ãã¾ãã ä»åã¯ã¹ãã£ãã¼ã®ä½æã«ä½¿ããããªãã®ãæ¢ãã¦ã¿ãã¨ä»¥ä¸ã®ãã®ãè¦ã¤ãã¾ããã 使ãã¨ããããã®ãããã§ããããªã MutableIpv4Packet MutableEchoRequestPacket å®éã«ä½ã£ã¦ã¿ãã¨ããã¾ã çµæ§ä½¿ãã©ã¤ãã©ãªã¼ã¯ããã¾ãããä¸ã®ï¼ã¤ãä»åã®ä¸»å½¹ã«ãªãã¾ãã å®è£ ãã ã©ã¤ãã©ãªã¼ãuseãã¾ãã å¿ è¦ãªãã®ãã
ãããRustã§ä½ãã¨ã©ã®ãããªå½¢ã«ãªãã®ãã«èå³ãããã¾ããã ARPãã¤ãºãã³ã°ã®åçã«ã¤ãã¦ã¯ä¸ã«æããè¨äºã«ç°¡åã«æ¸ããã¦ããã®ã§ã ä»åã¯ä¸»ã«å®è£ ãä¸å¿ã«æ¸ãããã¨æãã¾ãã å®ç¾ããããã«å¿ è¦ãªãã® Rustã§å®ç¾ããããã«ã²ã¨ã¾ãããã¥ã¡ã³ããèªã¿ã¾ããã https://docs.rs/pnet/0.22.0/pnet/index.html ããã§é¢é£ããããªãã®ããã¤ãã¾ããã MutableEthernetPacket MutableArpPacket ãããããããã使ããã¨ã«ãªãã§ãããã pnetã使ããã¨ã¯ããã£ã¦ãã¾ããã ã¾ãRustã«éããä½ã¬ã¤ã¤ã®ãã±ãããæ±ãã«ã¯RawSocketã«ã¢ã¯ã»ã¹ããå¿ è¦ãããã¾ãã ãã®æ¹æ³ã«é¢ãã¦ã¯ä»¥åã«è¨äºã«ãã¾ããã ãã®è¨äºã§ã¯ãã±ããããã£ããã£ããããã°ã©ã ãä½ãã¾ããã ã¤ã³ã¿ã¼ãã§ã¼ã¹ãåå¾ãã¦ãã¼ã¿ãªã³ã¯
Pythonã¨Rubyã¯ä¼¼ã¦ããããåããããªæé ã§ä½æãããã¨ãã§ãã¾ãã ç´°ãã説æã¯ä»¥åã®è¨äºã§ã¾ã¨ããã®ã§ãä»åã¯ã½ã¼ã¹ãæ¸ãã¤ã¤ããã£ã¨é²ãã¦ããããã¨æãã¾ãã ã½ã±ããä½æ Pythonã§rawsocketã使ç¨ããæã¯ä»¥ä¸ã®ããã«è¨è¿°ãã¾ãã # tcpãããã¼ãèªåã§ä½ã def make_socket(): soc = socket.socket(socket.AF_INET,socket.SOCK_RAW,socket.IPPROTO_TCP) return soc ããã§tcpãã±ãããèªåã§ä¿®æ£ãããã¨ãã§ãã¾ãã åä¿¡ã¯ipãã±ããã対象ã«ãªãã¾ãã ã¡ãªã¿ã«Rubyã ã¨ãããªæãã§ãã def make_socket() soc = Socket::open(Socket::AF_INET,Socket::SOCK_RAW,Socket::IPPROTO_TC
ä»åã¯ãæ¨çåæ»æã§å®éã«ä½¿ããããDomain Frontingï¼ãã¡ã¤ã³ã»ããã³ãã£ã³ã°ï¼ã¨ãããã¯ããã¯ã«ã¤ãã¦è§£èª¬ãã¾ãã ãããã¯ã¼ã¯ã®ç£è¦ã¨ããã¯ãã¢ã®æ¤åº æ»æè ã¯é常ãã¿ã¼ã²ããã®ãããã¯ã¼ã¯ã«ä¾µå ¥ãããã¨ãä½ããã®æ¹æ³ã§ããã¯ãã¢ãè¨ç½®ãããããã¯ã¼ã¯ã¸ã®ç¶ç¶çãªè¶³ããããä½ãã¾ããããã§ãæè¿ã§ã¯é«åº¦ãªãã¡ã¤ã¢ã¦ã©ã¼ã«ãUTMæ©å¨ãªã©ãç¨ãã¦ãããã¯ã¼ã¯ãç£è¦ãã¦ããçµç¹ãå°ãªãããã¾ããããããã®çµç¹ã§ã¯ãçµç¹å ã®ãããã¯ã¼ã¯ããã¤ã³ã¿ã¼ãããã«åºã¦è¡ãä¸å¯©ãªéä¿¡ãç£è¦ãããã¨ã§ããã«ã¦ã¨ã¢ã®ã³ãã¯ãããã¯ï¼ã³ã¼ã«ããã¯ï¼ãæ¤ç¥ãã¦ãã¾ããæè¿ã»ãã¥ãªãã£ä¼æ¥ã®FireEyeãå ±åããäºä¾ã§ã¯ãæ»æè ã¯å¿åéä¿¡ã·ã¹ãã Torãä»ãã¦ã¿ã¼ã²ããã®ã·ã¹ãã ã«ä»è¾¼ãã ããã¯ãã¢ã¨éä¿¡ãã¦ãã¾ããããããããã¯ã¼ã¯ãç£è¦ããã¦ããã°ããã®ãããªéä¿¡ã¯ä¸å¯©ãªãã©ãã£ãã¯ã¨ãã¦æ¤
ã¯ããã«ãï¼ããã®è¨äºãæ¸ããçç± ãã®è¨äºã¯ãã¬ã¤ã¤ã¼ãã¢ã¼ããã¯ãã£ãã¡ãã£ã¨ç解ããå¦çãæ®ãããã®ã§ããã³ã¼ãã«èªä¿¡ããªãã®ã§ãæ¹åç¹ãã³ã¡ã³ããªã©ãæ®ãã¦é ããã¨åå¼·ã«ãªãã®ã§å©ããã¾ãã ã³ã¼ãã¯GolangãMySQLã§æ¸ãã¦ãã¾ãã(ãµã³ãã«ã³ã¼ã) ã¯ãªã¼ã³ã¢ã¼ããã¯ãã£ã«ã¤ãã¦ããã®ãã¡è¨äºã«ãã¾ãã ãã«ãªåã ãããç¥ãã¾ãããã¢ã¼ããã¯ãã£ã«ã¤ãã¦ã®è¨äºãèªãã§ãã層ã£ã¦ä½ï¼ã©ãããæ§é ã«ãªã£ã¦ãã®ï¼ã©ãå®è£ ããã®ï¼ãã£ã¦æãã¾ãããï¼ ã¢ã¼ããã¯ãã£ãåå¼·ä¸ã®åã¯ããããªè¨äºãèªãã§ããã«ãªãã«ç解ãããã¨ãä¼ãããã¦ä»åã®è¨äºãæ¸ãã¾ããã [追è¨] ãã®è¨äº [DDD]ãã¡ã¤ã³é§å + ãªããªã³ã¢ã¼ããã¯ãã£æ¦ç¥ ã«ããã¨ããããªããªã³ã¢ã¼ããã¯ãã£ã§ãã ã¬ã¤ã¤ã¼ãã¢ã¼ããã¯ã㣠ã¨ã¯ãâ ã¬ã¤ã¤ã¼ãã¢ã¼ããã¯ãã£ã«ã¤ãã¦ããèªãã§ããã ããã¨ç解ã§ããã¨æ
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}