如何從初學者轉變為一個強大的黑客?
學好編程是當黑客的第一步
黑客不局限於此
黑客還得會入侵,會逆向等等
只會編程,你可以當個好的程序員,好的開發者
黑客技術其實沒那麼難,感興趣就可以學
怎麼學呢?
從自己的興趣點出發去學習
比如,可以先入侵個小網站,提個權,找找漏洞等等
在動手的過程中,你會遇到很多問題,嘗試找出問題,然後去解決
動手多了,你水平就會慢慢的起來了
我這裡積累了很多這方面的乾貨資料
需要的話,可以參考下圖找我來拿
也可以來跟我學
def kmp(pattern, text):
"""
The Knuth-Morris-Pratt Algorithm for finding a pattern within a piece of text
with complexity O(n + m)
1) Preprocess pattern to identify any suffixes that are identical to prefixes
This tells us where to continue from if we get a mismatch between a character in our pattern
and the text.
2) Step through the text one character at a time and compare it to a character in the pattern
updating our location within the pattern if necessary
"""
# 1) Construct the failure array
failure = get_failure_array(pattern)
# 2) Step through text searching for pattern
i, j = 0, 0 # index into text, pattern
while i &< len(text):
if pattern[j] == text[i]:
if j == (len(pattern) - 1):
return True
j += 1
# if this is a prefix in our pattern
# just go back far enough to continue
elif j &> 0:
j = failure[j - 1]
continue
i += 1
return False
def get_failure_array(pattern):
"""
Calculates the new index we should go to if we fail a comparison
:param pattern:
:return:
"""
failure = [0]
i = 0
j = 1
while j &< len(pattern):
if pattern[i] == pattern[j]:
i += 1
elif i &> 0:
i = failure[i - 1]
continue
j += 1
failure.append(i)
return failure
if __name__ == "__main__":
# Test 1)
pattern = "abc1abc12"
text1 = "alskfjaldsabc1abc1abc12k23adsfabcabc"
text2 = "alskfjaldsk23adsfabcabc"
assert kmp(pattern, text1) and not kmp(pattern, text2)
# Test 2)
pattern = "ABABX"
text = "ABABZABABYABABX"
assert kmp(pattern, text)
# Test 3)
pattern = "AAAB"
text = "ABAAAAAB"
assert kmp(pattern, text)
# Test 4)
pattern = "abcdabcy"
text = "abcxabcdabxabcdabcdabcy"
assert kmp(pattern, text)
# Test 5)
pattern = "aabaabaaa"
assert get_failure_array(pattern) == [0, 1, 0, 1, 2, 3, 4, 5, 2]
不斷的學習編程,以及多看國外大佬博客關注最新0day,精通某種語言,能夠做到代碼審計,就算是入門了。
謝邀
你要自己一點一點積累起來經驗,自己學習一下技術,自己親身嘗試才是硬道理,比如說社工之類的
這個行業不是你想上就能上的,如果你自己覺得你行,那就在保證你那1%的勤奮的情況下去付出那99%的汗水,完成了,你就是了。
我只能告訴你如何從初學者變成一個菜鳥黑客,如果你對啥數據感興趣,又拿不到它。就去練習吧。但別犯法。比如對修改你們大學的成績感興趣啥的。
看你在這方面經歷了多少次失敗,多少次放棄,然後多少次爬起,
天賦30%+時間30%+耐力40=黑客
我不說廢話,我有之前學的教程python/vc++/vb。要的話我可以給你。
謝邀,想成為一名黑客,必須條件:你得會一種語言吧?推薦 python,ruby,你得會linux把,你得會nmap,masscan進行探測吧?你還得會抓包分析吧?
推薦閱讀: