You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"fmt""github.com/D3Ext/maldev/misc"
)
funcmain(){
pattern:=misc.GeneratePattern(1000)
fmt.Println(pattern)
// Get offset from some 4bits substring of patternoffset:=misc.GetOffset("Jeek")
}
Epoch date
package main
import (
"fmt""github.com/D3Ext/maldev/misc"
)
funcmain(){
// Convert date to epoch formatepoch:=misc.DateToEpoch(2023, 1, 8, 11, 23, 0) // DateToEpoch(year, month, day, hour, minute, second int)fmt.Println(epoch) // Output: 1673176980// Convert epoch to datedate:=misc.EpochToDate(epoch)
fmt.Println(date) // Output: 2023-1-8 11:23:0
}
Convert text to Leet
package main
import (
"fmt""github.com/D3Ext/maldev/misc"
)
funcmain(){
leet:=misc.TextToLeet("This is a test")
fmt.Println(leet) // Output: 7#¡$ ¡$ @ 73$7
}
Generate random string of n length
package main
import (
"fmt""github.com/D3Ext/maldev/misc"
)
funcmain(){
rand_str:=misc.RandomString(10)
fmt.Println(rand_str)
}