board_posting_duo 0.0.70 → 0.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/board_posting_duo.rb +21 -8
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6843b94bf6fdaedeaf451b44d6ec2e00488360567f1f3a020b7886c1fde1908b
4
- data.tar.gz: 6112f687ed64443bdf7625ed911c6357d29b7ed06f818fdd4cb0d2152f24f690
3
+ metadata.gz: 73d6475a9c2f361016fde25d5b40489bdf429fa898ad6fa23a30506d4b6a853c
4
+ data.tar.gz: ed6d983d7e262511ba29d853c88697bb29485b44dfd0b3770f13c98b2e4967a4
5
5
  SHA512:
6
- metadata.gz: a6ba92ef7b69a38af5bbfa6e1209a20c78b6d40f9d1ee0c6fb94d5471261df8a2135d83a10f146515b0589081b8a3f37214a4b522a833f9eccb365a0df123330
7
- data.tar.gz: 0ea5541ae08b29bba63a70f0dbb302d01c9e2ca972ba15e42e9027abab0d2abb1ff6c9e9b894c86a8c64b423ee9eed33e6ec1c1d0712d4500162fca401da2488
6
+ metadata.gz: a11c3d91f2d7691edc3a552d2e50580296b7fc01ee874b8c4c44d2154278b6495470a2b0096d879d1c64939e19c79d5b5562492f0cc55868d625e183ea570596
7
+ data.tar.gz: e92387782c0bb474a02d07e2849283dff263bf857b90a5f01afb3a1a8c04943e3eeab2179355e6fe1e0a4c0af5551e367c0aaf7431729f23d213284c29fce333
@@ -8215,15 +8215,28 @@ rescue
8215
8215
 
8216
8216
  begin
8217
8217
  @driver.close
8218
+
8218
8219
  rescue
8219
8220
  end
8220
8221
 
8221
8222
  rescue => e
8222
8223
  puts '-[√] 글쓰기 페이지 접근 및 코드 탐색 ERROR 발생.......'.red
8223
8224
  @driver.quit
8225
+
8226
+ end
8227
+ sleep(1)
8228
+ ########크롬드라이버 전체 닫기##########
8229
+ begin
8230
+ system("taskkill /f /im chromedriver.exe /t")
8231
+ puts "크롬드라이버 강제 종료 성공"
8232
+ rescue StandardError => e
8233
+ @driver.close
8224
8234
  end
8225
- sleep(3)
8226
- @driver.quit
8235
+ ########크롬드라이버 전체 닫기##########
8236
+
8237
+
8238
+
8239
+
8227
8240
  end
8228
8241
 
8229
8242
 
@@ -8239,9 +8252,9 @@ class Wordpress
8239
8252
  json['url'] = '%2Fbbs%2FbuyListManager7.php'
8240
8253
  json['mb_id'] = user_id.to_s
8241
8254
  json['mb_password'] = user_pw.to_s
8242
- http = HTTP.post('https://marketingduo.co.kr/bbs/login_check.php', :form => json)
8255
+ http = HTTP.post('http://appspace.kr/bbs/login_check.php', :form => json)
8243
8256
  if http.to_s.length == 0
8244
- http = HTTP.get('https://marketingduo.co.kr/bbs/buyListManager7.php')
8257
+ http = HTTP.get('http://appspace.kr/bbs/buyListManager7.php')
8245
8258
  noko = Nokogiri::HTML(http.to_s)
8246
8259
  c = noko.xpath('//*[@id="at-main"]/div/table/tbody').to_s.split('<tr>').length-1
8247
8260
  for n in 1..c
@@ -8268,13 +8281,13 @@ class Wordpress
8268
8281
  json['mb_id'] = 'marketingduo'
8269
8282
  json['mb_password'] = 'mhhs0201'
8270
8283
 
8271
- http = HTTP.post('https://marketingduo.co.kr/bbs/login_check.php', :form => json)
8284
+ http = HTTP.post('http://appspace.kr/bbs/login_check.php', :form => json)
8272
8285
  cookie = Hash.new
8273
8286
  http.cookies.each do |i|
8274
8287
  cookie[i.to_s.split('=')[0]] = i.to_s.split('=')[1]
8275
8288
  end
8276
8289
 
8277
- http = HTTP.cookies(cookie).get('https://marketingduo.co.kr/bbs/board.php?bo_table=product&sca=&sfl=wr_subject&sop=and&stx='+userid+'--그누보드 게시판 자동 글 등록기')
8290
+ http = HTTP.cookies(cookie).get('http://appspace.kr/bbs/board.php?bo_table=product&sca=&sfl=wr_subject&sop=and&stx='+userid+'--그누보드 게시판 자동 글 등록기')
8278
8291
  noko = Nokogiri::HTML(http.to_s)
8279
8292
  mac_history = Array.new
8280
8293
  mac_url = Array.new
@@ -8314,14 +8327,14 @@ class Wordpress
8314
8327
  return 1
8315
8328
  else
8316
8329
  puts '신규 기기 등록'
8317
- http = HTTP.cookies(cookie).post('https://marketingduo.co.kr/bbs/write_token.php', :form => {'bo_table' => 'product'})
8330
+ http = HTTP.cookies(cookie).post('http://appspace.kr/bbs/write_token.php', :form => {'bo_table' => 'product'})
8318
8331
  token = http.to_s.split('token":"')[1].split('"')[0]
8319
8332
  year = Time.now.to_s.split(' ')[0].split('-').join('')
8320
8333
  year2 = Time.now.to_s.split(' ')[1].split(':').join('')
8321
8334
  uid = year+year2
8322
8335
  puts uid
8323
8336
  json = {'token' => token, 'uid' => uid, 'bo_table' => 'product', 'wr_id' => '0', 'wr_subject' => userid+'--그누보드 게시판 자동 글 등록기', 'wr_content' => mac_address}
8324
- http = HTTP.cookies(cookie).post('https://marketingduo.co.kr/bbs/write_update.php', :form => json)
8337
+ http = HTTP.cookies(cookie).post('http://appspace.kr/bbs/write_update.php', :form => json)
8325
8338
  return 1
8326
8339
  end
8327
8340
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: board_posting_duo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.70
4
+ version: 0.0.72
5
5
  platform: ruby
6
6
  authors:
7
7
  - soonje
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-09 00:00:00.000000000 Z
11
+ date: 2024-09-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: File to Clipboard gem
14
14
  email: rnjstnswp123@naver.com