imap

Hyda爆破

 ̄綄美尐妖づ 提交于 2019-12-19 07:16:09
转载: http://www.cnblogs.com/bmjoker/ 2018,网站的防护(sql,xss...)的安全保护也已经上升了一个等级,但是由于管理员的安全意识薄弱,网站弱口令漏洞依然猖獗,不信可以看补天的漏洞提交记录,弱口令依然是漏洞中的佼佼者,当然弱口令并不仅限于网站的后台登陆弱口令,还有端口,比如 Ftp:21,ssh:22,Telnet:23,Pop3:110,3389远程登陆,8080中间件Tomcat,7001中间件Weblogic,3306 Mysql数据库(phpmyadmin),1433 SQLServer数据库,5432 Postgresql数据库... 端口扫描不用多讲,鄙人还是觉得nmap好一点,但是如何批量扫的话,丢包率可能高一点。 对于端口的爆破,首先要有一个好的字典,然后再有一个好的工具,工具的话,python脚本,超级弱口令检测工具....这里主要介绍kali里面hydra的爆破,应为hydra支持几乎所有协议的在线密码破解,并且容错率好,不过能不能爆破成功还是需要你有一个好的字典。 --------------------------------------------------------------- 语法: # hydra [[[-l LOGIN|-L FILE] [-p PASS|-P FILE]] | [-C FILE]]

Retrieving Emails Using Laravel and IMAP,failed to pass variable to view

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-19 04:38:30
问题 I have written a code to display emails form gmail: public function getMail() { /* connect to gmail */ $hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; $username = 'xyz@gmail.com'; $password = 'xyz'; $inbox = imap_open($hostname, $username, $password) or die('Cannot connect: ' . imap_last_error()); $emails = imap_search($inbox, 'ALL'); if ($emails) { $output = ''; rsort($emails); foreach ($emails as $email_number) { $header = imap_headerinfo($inbox, $email_number); $from = $header->from[0]-

Retrieving Emails Using Laravel and IMAP,failed to pass variable to view

吃可爱长大的小学妹 提交于 2019-12-19 04:38:09
问题 I have written a code to display emails form gmail: public function getMail() { /* connect to gmail */ $hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; $username = 'xyz@gmail.com'; $password = 'xyz'; $inbox = imap_open($hostname, $username, $password) or die('Cannot connect: ' . imap_last_error()); $emails = imap_search($inbox, 'ALL'); if ($emails) { $output = ''; rsort($emails); foreach ($emails as $email_number) { $header = imap_headerinfo($inbox, $email_number); $from = $header->from[0]-

How do I recieve a html email as a regular text?

独自空忆成欢 提交于 2019-12-19 03:56:55
问题 Here is the code I have thus far: import email, imaplib user = 'some username' pwd = 'some password' m = imaplib.IMAP4_SSL("imap.gmail.com") m.login(user, pwd) m.select("[Gmail]/All Mail") resp, data = m.fetch(1, "(RFC822)") email_body = data[0][1] mail = email.message_from_string(email_body) print mail I currently receive the email with a bunch of weird formatting. I would like to receive the email body as a plain text string. 回答1: (I've just tried this with my Gmail account.) The problem

How to read and save attachments using node-imap

旧街凉风 提交于 2019-12-19 03:21:59
问题 I'm using node-imap and I can't find a straightforward code example of how to save attachments from emails fetched using node-imap to disk using fs. I've read the documentation a couple of times. It appears to me I should do another fetch with a reference to the specific part of a message being the attachment. I started of with the basic example: var Imap = require('imap'), inspect = require('util').inspect; var imap = new Imap({ user: 'mygmailname@gmail.com', password: 'mygmailpassword',

Php email body decoding to plain

情到浓时终转凉″ 提交于 2019-12-19 03:16:41
问题 I'm tying extract some content of some equal emails with php but I can't. With that: $body = imap_body($imap_o, $email_n); I get: Pour = le r=E9cup=E9rer, il suffit de le t=E9l=E9charger, de le r=E9ceptionner puis de l=92ouvrir.=Une f= ois votre traduction termin=E9e, n=92oubliez pas de sauvegarder vos paires de langues et d=92effectuer une v=E9rification g=E9n=E9rale (statuts des segments, b= alises, nombres, espaces, majuscules, etc.).Ensui= te, cliquez sur =AB=A0Terminer et livrer=A0=BB

Php email body decoding to plain

血红的双手。 提交于 2019-12-19 03:16:12
问题 I'm tying extract some content of some equal emails with php but I can't. With that: $body = imap_body($imap_o, $email_n); I get: Pour = le r=E9cup=E9rer, il suffit de le t=E9l=E9charger, de le r=E9ceptionner puis de l=92ouvrir.=Une f= ois votre traduction termin=E9e, n=92oubliez pas de sauvegarder vos paires de langues et d=92effectuer une v=E9rification g=E9n=E9rale (statuts des segments, b= alises, nombres, espaces, majuscules, etc.).Ensui= te, cliquez sur =AB=A0Terminer et livrer=A0=BB

Using IMAP () in PHP to get recent unread emails count

徘徊边缘 提交于 2019-12-18 17:26:06
问题 I am trying to get no. of recent unread mails from a gmail account.For this I have installed IMAP in my Ubuntu system and tried some PHP iMAP functions. Here are what i have tried till now. /* connect to gmail */ $hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; $username = 'user@gmail.com'; $password = 'user_password'; /* try to connect */ $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error()); Now I am stating all my attempts. NB - I have

Is there a way to get your email address after authenticating with Gmail using Oauth?

荒凉一梦 提交于 2019-12-18 16:59:16
问题 In a Python web application, I am able to connect to Gmail using OAuth and IMAP. OAuth uses whichever Google account you're currently signed into simply and asks you to grant access to the web app. However, it doesn't provide an API to actually retrieve that account's email address. The problem is, even though the user grants access with OAuth, to interface with Gmail, you still need to explicitly provide the email address in your IMAP connection URL: https://mail.google.com/mail/b/[your

Is there a way to get your email address after authenticating with Gmail using Oauth?

£可爱£侵袭症+ 提交于 2019-12-18 16:59:07
问题 In a Python web application, I am able to connect to Gmail using OAuth and IMAP. OAuth uses whichever Google account you're currently signed into simply and asks you to grant access to the web app. However, it doesn't provide an API to actually retrieve that account's email address. The problem is, even though the user grants access with OAuth, to interface with Gmail, you still need to explicitly provide the email address in your IMAP connection URL: https://mail.google.com/mail/b/[your